Skip to content

Commit c140b01

Browse files
chore: remove debugging logs
1 parent 43573bb commit c140b01

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

rolling-shutter/eonkeypublisher/eonkeypublisher.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package eonkeypublisher
33
import (
44
"context"
55
"crypto/ecdsa"
6-
"runtime"
76
"time"
87

98
"github.com/ethereum/go-ethereum/accounts/abi/bind"
@@ -68,10 +67,6 @@ func (p *EonKeyPublisher) Start(ctx context.Context, runner service.Runner) erro
6867
case key := <-p.keys:
6968
p.publishIfResponsible(ctx, key)
7069
case <-ctx.Done():
71-
log.Info().Msgf("stopping eon key publisher, due to context cancellation, goroutines: %d", runtime.NumGoroutine())
72-
buf := make([]byte, 1024*1024)
73-
stackSize := runtime.Stack(buf, true)
74-
log.Info().Msgf("stack: %s", string(buf[:stackSize]))
7570
return ctx.Err()
7671
}
7772
}

rolling-shutter/keyperimpl/shutterservice/syncmonitor.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,6 @@ func (s *SyncMonitor) Start(ctx context.Context, runner service.Runner) error {
2525
return s.runMonitor(ctx)
2626
})
2727

28-
runner.Go(func() error {
29-
select {
30-
case <-time.After(30 * time.Minute):
31-
return errors.New("explicitly canceling context")
32-
case <-ctx.Done():
33-
return ctx.Err()
34-
}
35-
})
36-
3728
return nil
3829
}
3930

0 commit comments

Comments
 (0)