mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-15 04:03:07 +00:00
chore: update protocol health for lightpush
This commit is contained in:
parent
829d1834c1
commit
e84eb620f7
@ -1,5 +1,10 @@
|
||||
import type { Peer, PeerId } from "@libp2p/interface";
|
||||
import { ConnectionManager, LightPushCodec, LightPushCore } from "@waku/core";
|
||||
import {
|
||||
ConnectionManager,
|
||||
getHealthManager,
|
||||
LightPushCodec,
|
||||
LightPushCore
|
||||
} from "@waku/core";
|
||||
import {
|
||||
Failure,
|
||||
type IEncoder,
|
||||
@ -113,6 +118,11 @@ class LightPush extends BaseProtocolSDK implements ILightPush {
|
||||
}
|
||||
}
|
||||
|
||||
getHealthManager().updateProtocolHealth(
|
||||
this.protocol.multicodec,
|
||||
successes.length
|
||||
);
|
||||
|
||||
return {
|
||||
successes,
|
||||
failures
|
||||
|
||||
@ -17,7 +17,7 @@ import {
|
||||
|
||||
const NUM_NODES = [0, 1, 2, 3];
|
||||
|
||||
describe("Health Manager", function () {
|
||||
describe.only("Health Manager", function () {
|
||||
this.timeout(10_000);
|
||||
|
||||
let waku: LightNode;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user