Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
shan-96 committed Jun 23, 2024
1 parent 65e9422 commit e5443ef
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions server/server_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ type ServerConfig struct {
}

var DefaultServerConfig = ServerConfig{
ReadHeaderTimeout: 3 * time.Second,
ReadTimeout: 30 * time.Second,
ReadHeaderTimeout: ReadHeaderTimeoutSeconds * time.Second,
ReadTimeout: ReadTimeoutSeconds * time.Second,
}

const ReadHeaderTimeoutSeconds = 3

const ReadTimeoutSeconds = 30

0 comments on commit e5443ef

Please sign in to comment.