lint: fix style
This commit is contained in:
parent
db45430982
commit
4a55a9d785
@ -97,7 +97,6 @@ func (cfg Config) Create(global context.Context) (*Server, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (cfg Config) Run(global context.Context) error {
|
func (cfg Config) Run(global context.Context) error {
|
||||||
|
|
||||||
ctx, cancel := context.WithCancel(global)
|
ctx, cancel := context.WithCancel(global)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
@ -130,7 +129,7 @@ func (cfg Config) Run(global context.Context) error {
|
|||||||
}
|
}
|
||||||
cancel()
|
cancel()
|
||||||
<-done
|
<-done
|
||||||
return ctx.Err()
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
func limitRequest(maxSize int64, handler http.Handler) http.Handler {
|
func limitRequest(maxSize int64, handler http.Handler) http.Handler {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user