lint: fix style

This commit is contained in:
Alexander Baryshnikov 2020-09-19 20:03:39 +08:00
parent db45430982
commit 4a55a9d785
1 changed files with 1 additions and 2 deletions

View File

@ -97,7 +97,6 @@ func (cfg Config) Create(global context.Context) (*Server, error) {
}
func (cfg Config) Run(global context.Context) error {
ctx, cancel := context.WithCancel(global)
defer cancel()
@ -130,7 +129,7 @@ func (cfg Config) Run(global context.Context) error {
}
cancel()
<-done
return ctx.Err()
return err
}
func limitRequest(maxSize int64, handler http.Handler) http.Handler {