From 30df82a527c52e9ec18a87f98e2216731218be79 Mon Sep 17 00:00:00 2001 From: Prem Chaitanya Prathi Date: Fri, 18 Aug 2023 15:05:54 +0530 Subject: [PATCH] chore: change reachability monitoring func to package scope --- waku/v2/node/localnode.go | 2 +- waku/v2/node/wakunode2.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/waku/v2/node/localnode.go b/waku/v2/node/localnode.go index 165ad4d44..1a9063d6e 100644 --- a/waku/v2/node/localnode.go +++ b/waku/v2/node/localnode.go @@ -346,7 +346,7 @@ func (w *WakuNode) watchTopicShards(ctx context.Context) error { return nil } -func (w *WakuNode) RegisterAndMonitorReachability(ctx context.Context) error { +func (w *WakuNode) registerAndMonitorReachability(ctx context.Context) error { var myEventSub event.Subscription var err error if myEventSub, err = w.host.EventBus().Subscribe(new(event.EvtLocalReachabilityChanged)); err != nil { diff --git a/waku/v2/node/wakunode2.go b/waku/v2/node/wakunode2.go index 06cc2ba59..20b2c7fb9 100644 --- a/waku/v2/node/wakunode2.go +++ b/waku/v2/node/wakunode2.go @@ -406,7 +406,7 @@ func (w *WakuNode) Start(ctx context.Context) error { return err } w.peermanager.Start(ctx) - w.RegisterAndMonitorReachability(ctx) + w.registerAndMonitorReachability(ctx) } w.store = w.storeFactory(w)