Skip to content

Commit

Permalink
change errorf to warnf
Browse files Browse the repository at this point in the history
  • Loading branch information
tok-kkk committed Feb 12, 2020
1 parent fd214a9 commit 9da5e1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func (server *Server) handleFunc(w http.ResponseWriter, r *http.Request) {
})

if err := writeResponses(w, responses); err != nil {
server.logger.Errorf("error writing http response: %v", err)
server.logger.Warnf("error writing http response: %v", err)
}
}

Expand Down
2 changes: 1 addition & 1 deletion lightnode.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (options *Options) SetZeroToDefault() {
options.ClientTimeout = time.Minute
}
if options.TTL == 0 {
options.TTL = 10 * time.Second
options.TTL = 3 * time.Second
}
if options.UpdaterPollRate == 0 {
options.UpdaterPollRate = 5 * time.Minute
Expand Down

0 comments on commit 9da5e1b

Please sign in to comment.