From da64856bc0202ae3481132aa799670863c762b90 Mon Sep 17 00:00:00 2001 From: vinhphuctadang Date: Thu, 21 Apr 2022 15:59:26 +0700 Subject: [PATCH 1/3] adapt inj metrics pkg --- cmd/injective-price-oracle/metrics.go | 2 +- go.mod | 7 +++++-- go.sum | 16 ++++++++++++---- oracle/feed_binance.go | 2 +- oracle/feed_dynamic.go | 2 +- oracle/service.go | 2 +- 6 files changed, 21 insertions(+), 10 deletions(-) diff --git a/cmd/injective-price-oracle/metrics.go b/cmd/injective-price-oracle/metrics.go index 1c4f37a..61ac3b8 100644 --- a/cmd/injective-price-oracle/metrics.go +++ b/cmd/injective-price-oracle/metrics.go @@ -10,7 +10,7 @@ import ( // DEBUG: do not enable in production // _ "net/http/pprof" - "github.com/InjectiveLabs/injective-price-oracle/metrics" + "github.com/InjectiveLabs/metrics" ) // startMetricsGathering initializes metric reporting client, diff --git a/go.mod b/go.mod index 5c5f7ea..1159f73 100644 --- a/go.mod +++ b/go.mod @@ -27,7 +27,10 @@ require ( filippo.io/edwards25519 v1.0.0-beta.2 // indirect github.com/99designs/keyring v1.1.6 // indirect github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d // indirect + github.com/DataDog/datadog-go/v5 v5.1.0 // indirect github.com/DataDog/zstd v1.4.5 // indirect + github.com/InjectiveLabs/metrics v0.0.1 // indirect + github.com/Microsoft/go-winio v0.5.0 // indirect github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6 // indirect github.com/VictoriaMetrics/fastcache v1.5.7 // indirect github.com/armon/go-metrics v0.3.9 // indirect @@ -65,7 +68,7 @@ require ( github.com/go-ole/go-ole v1.2.1 // indirect github.com/go-stack/stack v1.8.0 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect - github.com/gofrs/uuid v4.0.0+incompatible // indirect + github.com/gofrs/uuid v4.2.0+incompatible // indirect github.com/gogo/protobuf v1.3.3 // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/golang/snappy v0.0.3 // indirect @@ -124,7 +127,7 @@ require ( github.com/spf13/pflag v1.0.5 // indirect github.com/spf13/viper v1.9.0 // indirect github.com/status-im/keycard-go v0.0.0-20200402102358-957c09536969 // indirect - github.com/stretchr/testify v1.7.1-0.20210427113832-6241f9ab9942 // indirect + github.com/stretchr/testify v1.7.1 // indirect github.com/subosito/gotenv v1.2.0 // indirect github.com/syndtr/goleveldb v1.0.1-0.20210305035536-64b5b1c73954 // indirect github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c // indirect diff --git a/go.sum b/go.sum index 67bdd45..5de1c1e 100644 --- a/go.sum +++ b/go.sum @@ -73,16 +73,22 @@ github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d h1:nalkkPQcITbvhmL4+C4cKA87NW0tfm3Kl9VXRoPywFg= github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d/go.mod h1:URdX5+vg25ts3aCh8H5IFZybJYKWhJHYMTnf+ULtoC4= github.com/DATA-DOG/go-sqlmock v1.3.3/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= +github.com/DataDog/datadog-go v3.2.0+incompatible h1:qSG2N4FghB1He/r2mFrWKCaL7dXCilEuNEeAn20fdD4= github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= +github.com/DataDog/datadog-go/v5 v5.1.0 h1:Zmq3tCk9+Tdq8Du73M71Zo6Dyx+cEo9QkCSCqQlHFaQ= +github.com/DataDog/datadog-go/v5 v5.1.0/go.mod h1:KhiYb2Badlv9/rofz+OznKoEF5XKTonWyhx5K83AP8E= github.com/DataDog/zstd v1.4.1/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= github.com/DataDog/zstd v1.4.5 h1:EndNeuB0l9syBZhut0wns3gV1hL8zX8LIu6ZiVHWLIQ= github.com/DataDog/zstd v1.4.5/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= github.com/HdrHistogram/hdrhistogram-go v1.1.0/go.mod h1:yDgFjdqOqDEKOvasDdhWNXYg9BVp4O+o5f6V/ehm6Oo= github.com/HdrHistogram/hdrhistogram-go v1.1.2/go.mod h1:yDgFjdqOqDEKOvasDdhWNXYg9BVp4O+o5f6V/ehm6Oo= +github.com/InjectiveLabs/metrics v0.0.1 h1:MXNj8JWOdIqiGZw83JdUTR+i6hgBrb12HatIUvaly9I= +github.com/InjectiveLabs/metrics v0.0.1/go.mod h1:Dmgd60Z0pfi7uOGSUzyqZ00tbMYmZK25u8Sjgk3Ay4A= github.com/InjectiveLabs/sdk-go v1.31.0 h1:cg9GBxgsx2NPVVuj6SdmSaYkVf7l9Wvo3APZVvkh66M= github.com/InjectiveLabs/sdk-go v1.31.0/go.mod h1:NU14EQaXVttJOSL2S8DrxcLV69/ta8fx3i5Jd3yYH6w= github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= github.com/Microsoft/go-winio v0.4.14/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jBhyzoq1bpyYA= +github.com/Microsoft/go-winio v0.5.0 h1:Elr9Wn+sGKPlkaBvwu4mTrxtmOp3F3yV9qhaHbXGjwU= github.com/Microsoft/go-winio v0.5.0/go.mod h1:JPGBdM1cNvN/6ISo+n8V5iA4v8pBzdOpzfwIujj1a84= github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5/go.mod h1:lmUJ/7eu/Q8D7ML55dXQrVaamCz2vxCfdQBasLZfHKk= github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE= @@ -412,6 +418,8 @@ github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5x github.com/gofrs/uuid v3.3.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/gofrs/uuid v4.0.0+incompatible h1:1SD/1F5pU8p29ybwgQSwpQk+mwdRrXCYuPhW6m+TnJw= github.com/gofrs/uuid v4.0.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= +github.com/gofrs/uuid v4.2.0+incompatible h1:yyYWMnhkhrKwwr8gAOcOCYxOOscHgDS9yZgBrnJfGa0= +github.com/gofrs/uuid v4.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/gogo/gateway v1.1.0 h1:u0SuhL9+Il+UbjM9VIE3ntfRujKbvVpFvNB4HbjeVQ0= github.com/gogo/gateway v1.1.0/go.mod h1:S7rR8FRQyG3QFESeSv4l2WnsyzlCLG0CzBbUUo/mbic= github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= @@ -864,8 +872,8 @@ github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/9 github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= github.com/pelletier/go-toml v1.9.4 h1:tjENF6MfZAg8e4ZmZTeWaWiT2vXtsoO6+iuOjFhECwM= github.com/pelletier/go-toml v1.9.4/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= -github.com/pelletier/go-toml/v2 v2.0.0-beta.6 h1:JFNqj2afbbhCqTiyN16D7Tudc/aaDzE2FBDk+VlBQnE= -github.com/pelletier/go-toml/v2 v2.0.0-beta.6/go.mod h1:ke6xncR3W76Ba8xnVxkrZG0js6Rd2BsQEAYrfgJ6eQA= +github.com/pelletier/go-toml/v2 v2.0.0-beta.6 h1:wURrrr62LqAzIR22w6KSpuDTdzPljPWc5UrtWOsWPfU= +github.com/pelletier/go-toml/v2 v2.0.0-beta.6/go.mod h1:r9LEWfGN8R5k0VXJ+0BkIe7MYkRdwZOjgMj2KwnJFUo= github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= github.com/performancecopilot/speed/v4 v4.0.0/go.mod h1:qxrSyuDGrTOWfV+uKRFhfxw6h/4HXRGUiZiufxo49BM= github.com/peterh/liner v1.0.1-0.20180619022028-8c1271fcf47f/go.mod h1:xIteQHvHuaLYG9IFj6mSxM0fCKrs34IrEQUhOYuGPHc= @@ -1048,8 +1056,8 @@ github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81P github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.1-0.20210427113832-6241f9ab9942 h1:t0lM6y/M5IiUZyvbBTcngso8SZEZICH7is9B6g/obVU= -github.com/stretchr/testify v1.7.1-0.20210427113832-6241f9ab9942/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s= github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww= diff --git a/oracle/feed_binance.go b/oracle/feed_binance.go index d5ac091..02281f9 100644 --- a/oracle/feed_binance.go +++ b/oracle/feed_binance.go @@ -13,7 +13,7 @@ import ( "github.com/shopspring/decimal" log "github.com/xlab/suplog" - "github.com/InjectiveLabs/injective-price-oracle/metrics" + "github.com/InjectiveLabs/metrics" ) var _ PricePuller = &binancePriceFeed{} diff --git a/oracle/feed_dynamic.go b/oracle/feed_dynamic.go index 364c157..006a7f4 100644 --- a/oracle/feed_dynamic.go +++ b/oracle/feed_dynamic.go @@ -13,8 +13,8 @@ import ( "github.com/shopspring/decimal" log "github.com/xlab/suplog" - "github.com/InjectiveLabs/injective-price-oracle/metrics" "github.com/InjectiveLabs/injective-price-oracle/pipeline" + "github.com/InjectiveLabs/metrics" ) type DynamicFeedConfig struct { diff --git a/oracle/service.go b/oracle/service.go index a6948c2..4ad5091 100644 --- a/oracle/service.go +++ b/oracle/service.go @@ -16,7 +16,7 @@ import ( exchangetypes "github.com/InjectiveLabs/sdk-go/chain/exchange/types" oracletypes "github.com/InjectiveLabs/sdk-go/chain/oracle/types" - "github.com/InjectiveLabs/injective-price-oracle/metrics" + "github.com/InjectiveLabs/metrics" ) type Service interface { From 51d00058c5ac8ce20857ca615fc227e55011110b Mon Sep 17 00:00:00 2001 From: vinhphuctadang Date: Thu, 21 Apr 2022 16:00:18 +0700 Subject: [PATCH 2/3] rm redundant internal metrics pkg --- metrics/client.go | 166 --------------------------------------------- metrics/metrics.go | 152 ----------------------------------------- 2 files changed, 318 deletions(-) delete mode 100644 metrics/client.go delete mode 100644 metrics/metrics.go diff --git a/metrics/client.go b/metrics/client.go deleted file mode 100644 index dddd461..0000000 --- a/metrics/client.go +++ /dev/null @@ -1,166 +0,0 @@ -package metrics - -import ( - "sync" - "time" - - "github.com/alexcesaro/statsd" - "github.com/pkg/errors" - log "github.com/xlab/suplog" -) - -var client Statter -var clientMux = new(sync.RWMutex) -var config *StatterConfig - -type StatterConfig struct { - EnvName string - HostName string - StuckFunctionTimeout time.Duration - MockingEnabled bool -} - -func (m *StatterConfig) BaseTags() []string { - var baseTags []string - - if len(config.EnvName) > 0 { - baseTags = append(baseTags, "env", config.EnvName) - } - if len(config.HostName) > 0 { - baseTags = append(baseTags, "machine", config.HostName) - } - - return baseTags -} - -type Statter interface { - Count(bucket string, n interface{}) - Increment(bucket string) - Gauge(bucket string, value interface{}) - Timing(bucket string, value interface{}) - Histogram(bucket string, value interface{}) - Unique(bucket string, value string) - Close() -} - -func Close() { - clientMux.RLock() - defer clientMux.RUnlock() - if client == nil { - return - } - client.Close() -} - -func Disable() { - config = checkConfig(nil) - clientMux.Lock() - client = newMockStatter(true) - clientMux.Unlock() -} - -func Init(addr string, prefix string, cfg *StatterConfig) error { - config = checkConfig(cfg) - if config.MockingEnabled { - // init a mock statter instead of real statsd client - clientMux.Lock() - client = newMockStatter(false) - clientMux.Unlock() - return nil - } - statter, err := statsd.New( - statsd.Address(addr), - statsd.Prefix(prefix), - statsd.ErrorHandler(errHandler), - statsd.TagsFormat(statsd.InfluxDB), - statsd.Tags(config.BaseTags()...), - ) - if err != nil { - err = errors.Wrap(err, "statsd init failed") - return err - } - clientMux.Lock() - client = statter - clientMux.Unlock() - return nil -} - -func checkConfig(cfg *StatterConfig) *StatterConfig { - if cfg == nil { - cfg = &StatterConfig{} - } - if cfg.StuckFunctionTimeout < time.Second { - cfg.StuckFunctionTimeout = 5 * time.Minute - } - if len(cfg.EnvName) == 0 { - cfg.EnvName = "local" - } - return cfg -} - -func errHandler(err error) { - log.WithError(err).Errorln("statsd error") -} - -func newMockStatter(noop bool) Statter { - return &mockStatter{ - noop: noop, - fields: log.Fields{ - "module": "mock_statter", - }, - } -} - -type mockStatter struct { - fields log.Fields - noop bool -} - -func (s *mockStatter) Count(bucket string, n interface{}) { - if s.noop { - return - } - log.WithFields(log.WithFn(s.fields)).Debugf("Bucket %s: %v", bucket, n) -} - -func (s *mockStatter) Increment(bucket string) { - if s.noop { - return - } - log.WithFields(log.WithFn(s.fields)).Debugf("Bucket %s", bucket) -} - -func (s *mockStatter) Gauge(bucket string, value interface{}) { - if s.noop { - return - } - log.WithFields(log.WithFn(s.fields)).Debugf("Bucket %s: %v", bucket, value) -} - -func (s *mockStatter) Timing(bucket string, value interface{}) { - if s.noop { - return - } - log.WithFields(log.WithFn(s.fields)).Debugf("Bucket %s: %v", bucket, value) -} - -func (s *mockStatter) Histogram(bucket string, value interface{}) { - if s.noop { - return - } - log.WithFields(log.WithFn(s.fields)).Debugf("Bucket %s: %v", bucket, value) -} - -func (s *mockStatter) Unique(bucket string, value string) { - if s.noop { - return - } - log.WithFields(log.WithFn(s.fields)).Debugf("Bucket %s: %v", bucket, value) -} - -func (s *mockStatter) Close() { - if s.noop { - return - } - log.WithFields(log.WithFn(s.fields)).Debugf("closed at %s", time.Now()) -} diff --git a/metrics/metrics.go b/metrics/metrics.go deleted file mode 100644 index c97a9b8..0000000 --- a/metrics/metrics.go +++ /dev/null @@ -1,152 +0,0 @@ -package metrics - -import ( - "fmt" - "runtime" - "strings" - "time" - - log "github.com/xlab/suplog" -) - -func ReportFuncError(tags ...Tags) { - fn := funcName() - reportFunc(fn, "error", tags...) -} - -func ReportClosureFuncError(name string, tags ...Tags) { - reportFunc(name, "error", tags...) -} - -func ReportFuncStatus(tags ...Tags) { - fn := funcName() - reportFunc(fn, "status", tags...) -} - -func ReportClosureFuncStatus(name string, tags ...Tags) { - reportFunc(name, "status", tags...) -} - -func ReportFuncCall(tags ...Tags) { - fn := funcName() - reportFunc(fn, "called", tags...) -} - -func ReportClosureFuncCall(name string, tags ...Tags) { - reportFunc(name, "called", tags...) -} - -func reportFunc(fn, action string, tags ...Tags) { - clientMux.RLock() - defer clientMux.RUnlock() - if client == nil { - return - } - tagSpec := joinTags(tags...) - tagSpec += ",func_name=" + fn - client.Increment(fmt.Sprintf("func.%v", action) + tagSpec) -} - -type StopTimerFunc func() - -func ReportFuncTiming(tags ...Tags) StopTimerFunc { - clientMux.RLock() - defer clientMux.RUnlock() - if client == nil { - return func() {} - } - t := time.Now() - fn := funcName() - tagSpec := joinTags(tags...) - tagSpec += ",func_name=" + fn - - doneC := make(chan struct{}) - go func(name string, start time.Time) { - select { - case <-doneC: - return - case <-time.NewTicker(config.StuckFunctionTimeout).C: - clientMux.RLock() - defer clientMux.RUnlock() - - err := fmt.Errorf("detected stuck function: %s stuck for %v", name, time.Since(start)) - log.WithError(err).Warningln("detected stuck function") - client.Increment("func.stuck" + tagSpec) - } - }(fn, t) - - return func() { - d := time.Since(t) - close(doneC) - - clientMux.RLock() - defer clientMux.RUnlock() - client.Timing("func.timing"+tagSpec, int(d/time.Millisecond)) - } -} - -func ReportClosureFuncTiming(name string, tags ...Tags) StopTimerFunc { - clientMux.RLock() - defer clientMux.RUnlock() - if client == nil { - return func() {} - } - t := time.Now() - tagSpec := joinTags(tags...) - tagSpec += ",func_name=" + name - - doneC := make(chan struct{}) - go func(name string, start time.Time) { - select { - case <-doneC: - return - case <-time.NewTicker(config.StuckFunctionTimeout).C: - clientMux.RLock() - defer clientMux.RUnlock() - - err := fmt.Errorf("detected stuck function: %s stuck for %v", name, time.Since(start)) - log.WithError(err).Warningln("detected stuck function") - client.Increment("func.stuck" + tagSpec) - } - }(name, t) - - return func() { - d := time.Since(t) - close(doneC) - - clientMux.RLock() - defer clientMux.RUnlock() - client.Timing("func.timing"+tagSpec, int(d/time.Millisecond)) - } -} - -func funcName() string { - pc, _, _, _ := runtime.Caller(2) - fullName := runtime.FuncForPC(pc).Name() - parts := strings.Split(fullName, "/") - nameParts := strings.Split(parts[len(parts)-1], ".") - return nameParts[len(nameParts)-1] -} - -type Tags map[string]string - -func (t Tags) With(k, v string) Tags { - if t == nil || len(t) == 0 { - return map[string]string{ - k: v, - } - } - t[k] = v - return t -} - -func joinTags(tags ...Tags) string { - if len(tags) == 0 { - return "" - } - var str string - for k, v := range tags[0] { - str += fmt.Sprintf(",%s=%s", k, v) - } - return str -} From a29ce57738ac516ea49df89ed15e35fa11bc6a0e Mon Sep 17 00:00:00 2001 From: vinhphuctadang Date: Thu, 21 Apr 2022 16:41:58 +0700 Subject: [PATCH 3/3] bump toml version as security error happens --- go.mod | 7 +++---- go.sum | 6 ++---- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/go.mod b/go.mod index 1159f73..fd21490 100644 --- a/go.mod +++ b/go.mod @@ -3,14 +3,14 @@ module github.com/InjectiveLabs/injective-price-oracle go 1.17 require ( + github.com/InjectiveLabs/metrics v0.0.1 github.com/InjectiveLabs/sdk-go v1.31.0 - github.com/alexcesaro/statsd v2.0.0+incompatible github.com/cosmos/cosmos-sdk v0.44.5 github.com/ethereum/go-ethereum v1.10.2 github.com/jawher/mow.cli v1.2.0 github.com/jpillora/backoff v1.0.0 github.com/mitchellh/mapstructure v1.4.2 - github.com/pelletier/go-toml/v2 v2.0.0-beta.6 + github.com/pelletier/go-toml/v2 v2.0.0-beta.8 github.com/pkg/errors v0.9.1 github.com/satori/go.uuid v1.2.0 github.com/shopspring/decimal v1.2.0 @@ -29,10 +29,10 @@ require ( github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d // indirect github.com/DataDog/datadog-go/v5 v5.1.0 // indirect github.com/DataDog/zstd v1.4.5 // indirect - github.com/InjectiveLabs/metrics v0.0.1 // indirect github.com/Microsoft/go-winio v0.5.0 // indirect github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6 // indirect github.com/VictoriaMetrics/fastcache v1.5.7 // indirect + github.com/alexcesaro/statsd v2.0.0+incompatible // indirect github.com/armon/go-metrics v0.3.9 // indirect github.com/aws/aws-sdk-go v1.40.45 // indirect github.com/bandprotocol/bandchain-packet v0.0.2 // indirect @@ -147,7 +147,6 @@ require ( golang.org/x/text v0.3.7 // indirect google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa // indirect google.golang.org/protobuf v1.27.1 // indirect - gopkg.in/alexcesaro/statsd.v2 v2.0.0 // indirect gopkg.in/ini.v1 v1.63.2 // indirect gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/go.sum b/go.sum index 5de1c1e..d622472 100644 --- a/go.sum +++ b/go.sum @@ -416,8 +416,6 @@ github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+ github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/gofrs/uuid v3.3.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= -github.com/gofrs/uuid v4.0.0+incompatible h1:1SD/1F5pU8p29ybwgQSwpQk+mwdRrXCYuPhW6m+TnJw= -github.com/gofrs/uuid v4.0.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/gofrs/uuid v4.2.0+incompatible h1:yyYWMnhkhrKwwr8gAOcOCYxOOscHgDS9yZgBrnJfGa0= github.com/gofrs/uuid v4.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/gogo/gateway v1.1.0 h1:u0SuhL9+Il+UbjM9VIE3ntfRujKbvVpFvNB4HbjeVQ0= @@ -872,8 +870,8 @@ github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/9 github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= github.com/pelletier/go-toml v1.9.4 h1:tjENF6MfZAg8e4ZmZTeWaWiT2vXtsoO6+iuOjFhECwM= github.com/pelletier/go-toml v1.9.4/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= -github.com/pelletier/go-toml/v2 v2.0.0-beta.6 h1:wURrrr62LqAzIR22w6KSpuDTdzPljPWc5UrtWOsWPfU= -github.com/pelletier/go-toml/v2 v2.0.0-beta.6/go.mod h1:r9LEWfGN8R5k0VXJ+0BkIe7MYkRdwZOjgMj2KwnJFUo= +github.com/pelletier/go-toml/v2 v2.0.0-beta.8 h1:dy81yyLYJDwMTifq24Oi/IslOslRrDSb3jwDggjz3Z0= +github.com/pelletier/go-toml/v2 v2.0.0-beta.8/go.mod h1:r9LEWfGN8R5k0VXJ+0BkIe7MYkRdwZOjgMj2KwnJFUo= github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= github.com/performancecopilot/speed/v4 v4.0.0/go.mod h1:qxrSyuDGrTOWfV+uKRFhfxw6h/4HXRGUiZiufxo49BM= github.com/peterh/liner v1.0.1-0.20180619022028-8c1271fcf47f/go.mod h1:xIteQHvHuaLYG9IFj6mSxM0fCKrs34IrEQUhOYuGPHc=