Skip to content

Commit

Permalink
Add probe state machine (#111)
Browse files Browse the repository at this point in the history
This adds the initial state machine for running regular connectivity
checks against nodes in the routing table. Scoring of useful nodes is
not included and is to be added in a later change.

Part of #45
  • Loading branch information
iand authored Sep 1, 2023
1 parent 9b9e606 commit 286ab4c
Show file tree
Hide file tree
Showing 4 changed files with 1,377 additions and 0 deletions.
1 change: 1 addition & 0 deletions routing/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ func (b *Bootstrap[K, A]) Advance(ctx context.Context, ev BootstrapEvent) Bootst

switch tev := ev.(type) {
case *EventBootstrapStart[K, A]:

// TODO: ignore start event if query is already in progress
iter := query.NewClosestNodesIter(b.self.Key())

Expand Down
Loading

0 comments on commit 286ab4c

Please sign in to comment.