this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

remove unused code

-39
-34
cmd/relay/relay/metrics_validator.go
··· 1 - package relay 2 - 3 - import ( 4 - "github.com/prometheus/client_golang/prometheus" 5 - "github.com/prometheus/client_golang/prometheus/promauto" 6 - ) 7 - 8 - var commitVerifyStarts = promauto.NewCounter(prometheus.CounterOpts{ 9 - Name: "validator_commit_verify_starts", 10 - }) 11 - 12 - var commitVerifyWarnings = promauto.NewCounterVec(prometheus.CounterOpts{ 13 - Name: "validator_commit_verify_warnings", 14 - }, []string{"host", "warn"}) 15 - 16 - // verify error and short code for why 17 - var commitVerifyErrors = promauto.NewCounterVec(prometheus.CounterOpts{ 18 - Name: "validator_commit_verify_errors", 19 - }, []string{"host", "err"}) 20 - 21 - // ok and *fully verified* 22 - var commitVerifyOk = promauto.NewCounterVec(prometheus.CounterOpts{ 23 - Name: "validator_commit_verify_ok", 24 - }, []string{"host"}) 25 - 26 - // it's ok, but... {old protocol, no previous root cid, ...} 27 - var commitVerifyOkish = promauto.NewCounterVec(prometheus.CounterOpts{ 28 - Name: "validator_commit_verify_okish", 29 - }, []string{"host", "but"}) 30 - 31 - // verify error and short code for why 32 - var syncVerifyErrors = promauto.NewCounterVec(prometheus.CounterOpts{ 33 - Name: "validator_sync_verify_errors", 34 - }, []string{"host", "err"})
-5
cmd/relay/stream/persist/diskpersist/diskpersist.go
··· 64 64 Buffer *bytes.Buffer // so we can put it back in the pool when we're done 65 65 } 66 66 67 - type jobResult struct { 68 - Err error 69 - Seq int64 70 - } 71 - 72 67 const ( 73 68 EvtFlagTakedown = 1 << iota 74 69 EvtFlagRebased