Skip to content

Commit

Permalink
fix releaser build
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony committed Jan 6, 2019
1 parent c634e08 commit df8910b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/comet/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (s *Server) Bucket(subKey string) *Bucket {

// RandServerHearbeat rand server heartbeat.
func (s *Server) RandServerHearbeat() time.Duration {
return (minServerHeartbeat + time.Duration(rand.Intn(int(maxServerHeartbeat-minServerHeartbeat))))
return (minServerHeartbeat + time.Duration(rand.Int63n(int64(maxServerHeartbeat-minServerHeartbeat))))
}

// Close close the server.
Expand Down

0 comments on commit df8910b

Please sign in to comment.