mirror of
https://github.com/skooner-k8s/skooner.git
synced 2026-08-24 04:16:18 +00:00
use try finally for request block
This commit is contained in:
@@ -134,8 +134,9 @@ function metrics(url: string, cb: DataCallback<Metrics[]>) {
|
||||
cb(metric.items || metric);
|
||||
} catch (err) {
|
||||
log.error('Unable to send request', {err});
|
||||
} finally {
|
||||
isApiRequestInProgress = false;
|
||||
}
|
||||
isApiRequestInProgress = false;
|
||||
}
|
||||
} catch (err) {
|
||||
log.error('No metrics', {err, url});
|
||||
|
||||
Reference in New Issue
Block a user