fix: error
This commit is contained in:
parent
bcadac0f07
commit
6bb1d524b9
|
@ -5,7 +5,7 @@ After=syslog.target network.target
|
|||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/local/bin/ev
|
||||
|
||||
User=www-data
|
||||
Restart=always
|
||||
RestartSec=30
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@ func (s *service) Run(ctx context.Context) (err error) {
|
|||
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second)
|
||||
defer cancel()
|
||||
|
||||
err = multierr.Combine(subReq.Close(ctx), subRes.Close(ctx), err)
|
||||
err = multierr.Combine(errs, subReq.Close(ctx), subRes.Close(ctx))
|
||||
}()
|
||||
|
||||
if errs != nil {
|
||||
|
|
Loading…
Reference in New Issue
Block a user