Skip to content

Commit

Permalink
Remove useless calculation
Browse files Browse the repository at this point in the history
More readable this way and also a few cycles faster.
  • Loading branch information
silverwind committed Apr 9, 2024
1 parent b1236e7 commit 58a237e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func newConfig() *Config {
return &Config{
WriteWait: 10 * time.Second,
PongWait: 60 * time.Second,
PingPeriod: (60 * time.Second * 9) / 10,
PingPeriod: 57 * time.Second,
MaxMessageSize: 512,
MessageBufferSize: 256,
}
Expand Down

0 comments on commit 58a237e

Please sign in to comment.