Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Commit

Permalink
feat: reduce the routing table refresh period
Browse files Browse the repository at this point in the history
  • Loading branch information
rach-id committed Feb 15, 2023
1 parent 27f6375 commit b0a8941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/dht.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func NewQgbDHT(ctx context.Context, h host.Host, store ds.Batching) (*QgbDHT, er
dht.Datastore(store),
dht.Mode(dht.ModeServer),
dht.ProtocolPrefix(ProtocolPrefix),
dht.RoutingTableRefreshPeriod(time.Nanosecond), // TODO investigate which values to use
dht.RoutingTableRefreshPeriod(time.Minute),
dht.NamespacedValidator(DataCommitmentConfirmNamespace, DataCommitmentConfirmValidator{}),
dht.NamespacedValidator(ValsetConfirmNamespace, ValsetConfirmValidator{}),
)
Expand Down

0 comments on commit b0a8941

Please sign in to comment.