diff --git a/src/index.ts b/src/index.ts index 27a632f7..fbcab1ec 100644 --- a/src/index.ts +++ b/src/index.ts @@ -353,6 +353,11 @@ export class GossipSub extends EventEmitter implements PubSub() + /** + * Make this protected so child class may want to redirect to its own log. + */ + protected readonly log: Logger + /** * Number of heartbeats since the beginning of time * This allows us to amortize some resource cleanup -- eg: backoff cleanup @@ -367,7 +372,6 @@ export class GossipSub extends EventEmitter implements PubSub | null = null - private readonly log: Logger public static multicodec: string = constants.GossipsubIDv11