mirror of
https://github.com/grassrootseconomics/eth-tracker.git
synced 2025-02-22 16:00:37 +01:00
Merge branch 'master' into cel2
This commit is contained in:
commit
d4d3763732
@ -25,7 +25,6 @@ import (
|
||||
"github.com/grassrootseconomics/eth-tracker/internal/syncer"
|
||||
"github.com/grassrootseconomics/eth-tracker/internal/util"
|
||||
"github.com/knadh/koanf/v2"
|
||||
"github.com/knadh/profiler"
|
||||
)
|
||||
|
||||
const defaultGracefulShutdownPeriod = time.Second * 30
|
||||
@ -50,14 +49,6 @@ func init() {
|
||||
}
|
||||
|
||||
func main() {
|
||||
// PROFILE
|
||||
p := profiler.New(profiler.Conf{
|
||||
MemProfileRate: 1,
|
||||
NoShutdownHook: true,
|
||||
}, profiler.Cpu, profiler.Mem)
|
||||
p.Start()
|
||||
// PROFILE
|
||||
|
||||
var wg sync.WaitGroup
|
||||
ctx, stop := notifyShutdown()
|
||||
|
||||
@ -201,12 +192,6 @@ func main() {
|
||||
lo.Info("graceful shutdown routine complete")
|
||||
}()
|
||||
|
||||
// PROFILE
|
||||
runtime.GC()
|
||||
p.Stop()
|
||||
time.Sleep(time.Second * 10)
|
||||
// PROFILE
|
||||
|
||||
go func() {
|
||||
wg.Wait()
|
||||
stop()
|
||||
|
1
go.mod
1
go.mod
@ -15,7 +15,6 @@ require (
|
||||
github.com/knadh/koanf/providers/env v1.0.0
|
||||
github.com/knadh/koanf/providers/file v1.1.2
|
||||
github.com/knadh/koanf/v2 v2.1.1
|
||||
github.com/knadh/profiler v0.2.0
|
||||
github.com/lmittmann/w3 v0.17.1
|
||||
github.com/nats-io/nats.go v1.36.0
|
||||
github.com/puzpuzpuz/xsync/v3 v3.4.0
|
||||
|
2
go.sum
2
go.sum
@ -118,8 +118,6 @@ github.com/knadh/koanf/providers/file v1.1.2 h1:aCC36YGOgV5lTtAFz2qkgtWdeQsgfxUk
|
||||
github.com/knadh/koanf/providers/file v1.1.2/go.mod h1:/faSBcv2mxPVjFrXck95qeoyoZ5myJ6uxN8OOVNJJCI=
|
||||
github.com/knadh/koanf/v2 v2.1.1 h1:/R8eXqasSTsmDCsAyYj+81Wteg8AqrV9CP6gvsTsOmM=
|
||||
github.com/knadh/koanf/v2 v2.1.1/go.mod h1:4mnTRbZCK+ALuBXHZMjDfG9y714L7TykVnZkXbMU3Es=
|
||||
github.com/knadh/profiler v0.2.0 h1:jaY0xlQs8iaWxKdvGHOftaZnX7d8l7yrCGQPSecwnng=
|
||||
github.com/knadh/profiler v0.2.0/go.mod h1:LqNkAu++MfFkbEDA63AmRaIf6UkGrLXyZ5VQQdekZiI=
|
||||
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
|
||||
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
|
||||
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
|
||||
|
Loading…
Reference in New Issue
Block a user