Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
domiwei committed May 21, 2024
1 parent 90dce46 commit 766f680
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cl/clparams/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,7 @@ func GetCheckpointSyncEndpoint(net NetworkType) string {
if len(checkpoints) == 1 {
return checkpoints[0]
}
n, err := rand.Int(rand.Reader, big.NewInt(int64(len(checkpoints)-1)))
n, err := rand.Int(rand.Reader, big.NewInt(int64(len(checkpoints))))
if err != nil {
panic(err)
}
Expand Down
1 change: 1 addition & 0 deletions turbo/cli/default_flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ var DefaultFlags = []cli.Flag{
&utils.CaplinDiscoveryAddrFlag,
&utils.CaplinDiscoveryPortFlag,
&utils.CaplinDiscoveryTCPPortFlag,
&utils.CaplinCheckpointSyncUrlFlag,
&utils.SentinelAddrFlag,
&utils.SentinelPortFlag,

Expand Down

0 comments on commit 766f680

Please sign in to comment.