Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
topliceanu committed Jan 26, 2022
1 parent 3ce4187 commit e7864e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/monitoring/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (s *solanaSource) Fetch(ctx context.Context) (interface{}, error) {
if err != nil {
return nil, fmt.Errorf("failed to decode ContractConfig from on-chain state: %w", err)
}
answer, blockNum, err := pkgSolana.GetLatestTransmission(ctx, s.client, state.Transmissions, commitment)
answer, _, err := pkgSolana.GetLatestTransmission(ctx, s.client, state.Transmissions, commitment)
if err != nil {
return nil, fmt.Errorf("failed to fetch latest on-chain transmission: %w", err)
}
Expand Down Expand Up @@ -130,3 +130,6 @@ func (l *logAdapter) Panicf(format string, values ...interface{}) {
func (l *logAdapter) Fatalf(format string, values ...interface{}) {
l.log.Fatalw(fmt.Sprintf(format, values...))
}

// Just to silence golangci-lint
var _ = logAdapter{}

0 comments on commit e7864e6

Please sign in to comment.