prom: fix gauge typings

This commit is contained in:
undefined committed 2022-08-20 18:11:01 +08:00
1 parent 43f5f0c9c3
commit 55cee2ef1c
4 files changed
+7 -6

No files matched your search

+2 -1
View File
@@ -416,9 +416,10 @@ export function Connection(
};
}
conn.onclose = () => {
h.cleanup?.(args);
bus.emit('connection/close', h);
h.cleanup?.(args);
};
bus.emit('connection/active', h);
} catch (e) {
await h.onerror(e);
}