From 782e19129d70c80a8c58b9b9268be745dfb334d9 Mon Sep 17 00:00:00 2001 From: Matthias <5011972+fasmat@users.noreply.github.com> Date: Tue, 4 Jul 2023 16:43:20 +0000 Subject: [PATCH] Fix complaints --- service/round.go | 2 +- service/service.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/service/round.go b/service/round.go index 979ca4ee..70489244 100644 --- a/service/round.go +++ b/service/round.go @@ -108,7 +108,7 @@ func (r *round) submit(key, challenge []byte) error { return err } -func (r *round) execute(ctx context.Context, end time.Time, minMemoryLayer uint, fileWriterBufSize uint) error { +func (r *round) execute(ctx context.Context, end time.Time, minMemoryLayer, fileWriterBufSize uint) error { logger := logging.FromContext(ctx).With(zap.String("round", r.ID)) logger.Sugar().Infof("executing until %v...", end) diff --git a/service/service.go b/service/service.go index 9d9f09af..09bb5b74 100644 --- a/service/service.go +++ b/service/service.go @@ -366,7 +366,7 @@ func (s *Service) Started() bool { return s.started.Load() } -func (s *Service) recover(ctx context.Context) (open *round, executing *round, err error) { +func (s *Service) recover(ctx context.Context) (open, executing *round, err error) { roundsDir := filepath.Join(s.datadir, "rounds") logger := logging.FromContext(ctx).Named("recovery") logger.Info("Recovering service state", zap.String("datadir", s.datadir))