Skip to content

Commit

Permalink
appease the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
topliceanu committed Feb 16, 2022
1 parent 4744d37 commit 72b6f36
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
10 changes: 10 additions & 0 deletions cmd/monitoring/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,13 @@ func main() {
entrypoint.Run()
log.Info("monitor stopped")
}

// adapt core/logger.Logger to monitoring logger.

type logWrapper struct {
logger.Logger
}

func (l logWrapper) With(values ...interface{}) relayMonitoring.Logger {
return logWrapper{l.Logger.With(values...)}
}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
github.com/rs/zerolog v1.26.1
github.com/satori/go.uuid v1.2.0
github.com/smartcontractkit/chainlink v1.1.1-0.20220215214847-93630cf8c733
github.com/smartcontractkit/chainlink-relay v0.0.0-20220208185145-f90ff8f9d79a
github.com/smartcontractkit/chainlink-relay v0.0.0-20220216143252-cf2fe41e5b92
github.com/smartcontractkit/helmenv v1.0.36
github.com/smartcontractkit/integrations-framework v1.0.48
github.com/smartcontractkit/libocr v0.0.0-20220125200954-5b957c834276
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2179,8 +2179,8 @@ github.com/smartcontractkit/chainlink v0.8.10-0.20200825114219-81dd2fc95bac/go.m
github.com/smartcontractkit/chainlink v0.9.5-0.20201207211610-6c7fee37d5b7/go.mod h1:kmdLJbVZRCnBLiL6gG+U+1+0ofT3bB48DOF8tjQvcoI=
github.com/smartcontractkit/chainlink v1.1.1-0.20220215214847-93630cf8c733 h1:98E+/UxVe5dqmke+XsPK9fWiE9nJ35KYFS4JqmEzUV4=
github.com/smartcontractkit/chainlink v1.1.1-0.20220215214847-93630cf8c733/go.mod h1:ExXVFKbuu8KgU1TVftSy5NuLc1UCxkqeXn2T+IPEG7Q=
github.com/smartcontractkit/chainlink-relay v0.0.0-20220208185145-f90ff8f9d79a h1:A5dMoZ7vDtiytYw/38wtf1kEVWXds47q3NpQYpD8Huk=
github.com/smartcontractkit/chainlink-relay v0.0.0-20220208185145-f90ff8f9d79a/go.mod h1:/6gP9XHTQEBeBnXtC9oF1VelYhPMtGDu+6LxLtFP01g=
github.com/smartcontractkit/chainlink-relay v0.0.0-20220216143252-cf2fe41e5b92 h1:Q3vUQ/eLcsRM7c1FelekSHXRyuokM+XeWqrh9jwpvCU=
github.com/smartcontractkit/chainlink-relay v0.0.0-20220216143252-cf2fe41e5b92/go.mod h1:/6gP9XHTQEBeBnXtC9oF1VelYhPMtGDu+6LxLtFP01g=
github.com/smartcontractkit/chainlink-solana v0.2.10-0.20220208192802-307c6fba76f0 h1:A9Bw3yZu9bOwGt5krstlPrpUK+j4SRCEfWm+az225Yw=
github.com/smartcontractkit/ed25519consensus v0.0.1 h1:Ta23Y6YJTACLCpKWSWAwgHCtkmWrGGfrUAV8Ns5r4z0=
github.com/smartcontractkit/ed25519consensus v0.0.1/go.mod h1:8Wf0F4mu3B5DdEOFKMMLgSoZ8EyaA2Cmf4YMUsNHXzE=
Expand Down
2 changes: 1 addition & 1 deletion pkg/monitoring/source_envelope.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (e *envelopeSource) Fetch(ctx context.Context) (interface{}, error) {
envelopeErr = multierr.Combine(fmt.Errorf("failed to parse link balance from '%s'", balanceRes.Balance))
return
}
envelope.LinkBalance = big.NewInt(balance.Int64())
envelope.LinkBalance = balance
}()
wg.Wait()
return envelope, envelopeErr
Expand Down

0 comments on commit 72b6f36

Please sign in to comment.