Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6bb1d524b9 |
@@ -5,7 +5,7 @@ After=syslog.target network.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/usr/local/bin/ev
|
ExecStart=/usr/local/bin/ev
|
||||||
|
User=www-data
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=30
|
RestartSec=30
|
||||||
|
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ func (s *service) Run(ctx context.Context) (err error) {
|
|||||||
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second)
|
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second)
|
||||||
defer cancel()
|
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 {
|
if errs != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user