Skip to content

Commit

Permalink
chore: change reachability monitoring func to package scope
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyaprem committed Aug 18, 2023
1 parent 6d40603 commit 30df82a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion waku/v2/node/localnode.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion waku/v2/node/wakunode2.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 30df82a

Please sign in to comment.