logActiveRequests method
void
logActiveRequests()
Implementation
void logActiveRequests() {
// Map<int?, int> kindsMap = {};
Map<String?, int> namesMap = {};
globalState.inFlightRequests.forEach((key, state) {
// int? kind;
// if (state.requests.isNotEmpty &&
// state.requests.values.first.filters.first.kinds != null &&
// state.requests.values.first.filters.first.kinds!.isNotEmpty) {
// kind = state.requests.values.first.filters.first.kinds!.first;
// }
// int? kindCount = kindsMap[kind];
int? nameCount = namesMap[state.request.name];
// kindCount ??= 0;
// kindCount++;
nameCount ??= 0;
nameCount++;
// kindsMap[kind] = kindCount;
namesMap[state.request.name] = nameCount;
});
Logger.log.d(
"------------ IN FLIGHT REQUESTS: ${globalState.inFlightRequests.length} || $namesMap");
}