From 6bb1d524b9abdad75b384c95661bd7347b22cb92 Mon Sep 17 00:00:00 2001 From: xuu Date: Sun, 1 Oct 2023 16:56:28 -0600 Subject: [PATCH] fix: error --- .ansible/files/ev.service | 2 +- app/peerfinder/service.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.ansible/files/ev.service b/.ansible/files/ev.service index 97e3394..7b79e50 100644 --- a/.ansible/files/ev.service +++ b/.ansible/files/ev.service @@ -5,7 +5,7 @@ After=syslog.target network.target [Service] Type=simple ExecStart=/usr/local/bin/ev - +User=www-data Restart=always RestartSec=30 diff --git a/app/peerfinder/service.go b/app/peerfinder/service.go index bf554bc..a661c0c 100644 --- a/app/peerfinder/service.go +++ b/app/peerfinder/service.go @@ -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 {