Skip to content

Commit

Permalink
Update golangci-version
Browse files Browse the repository at this point in the history
This reverts commit 97fd3b4.
  • Loading branch information
chudilka1 committed Oct 21, 2024
1 parent 97fd3b4 commit 1d1f514
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pkg/capabilities/cli/cmd/generate_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func schemaFilesFromDir(dir string) ([]string, error) {
schemaPaths = append(schemaPaths, path)
return nil
}); err != nil {
return nil, fmt.Errorf("error walking the directory %v: %w", dir, err)
return nil, fmt.Errorf("error walking the directory %v: %v", dir, err)
}
return schemaPaths, nil
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/codec/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (ExampleStructJSONCodec) GetMaxEncodingSize(_ context.Context, n int, _ str
func (ExampleStructJSONCodec) Decode(_ context.Context, raw []byte, into any, _ string) error {
err := json.Unmarshal(raw, into)
if err != nil {
return fmt.Errorf("%w: %w", types.ErrInvalidType, err)
return fmt.Errorf("%w: %s", types.ErrInvalidType, err)
}
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/loop/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (e *EnvConfig) parse() error {
var err error
e.DatabaseURL, err = getDatabaseURL()
if err != nil {
return fmt.Errorf("failed to parse %s: %w", envDatabaseURL, err)
return fmt.Errorf("failed to parse %s: %q", envDatabaseURL, err)
}

e.PrometheusPort, err = strconv.Atoi(promPortStr)
Expand Down
4 changes: 2 additions & 2 deletions pkg/loop/internal/relayer/pluginprovider/ext/median/median.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ func (p *ProviderClient) OnchainConfigCodec() median.OnchainConfigCodec {
return p.onchainConfigCodec
}

func (p *ProviderClient) ContractReader() types.ContractReader {
return p.contractReader
func (m *ProviderClient) ContractReader() types.ContractReader {
return m.contractReader
}

func (p *ProviderClient) Codec() types.Codec {
Expand Down
2 changes: 1 addition & 1 deletion pkg/loop/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func newServer(loggerName string) (*Server, error) {

lggr, err := NewLogger()
if err != nil {
return nil, fmt.Errorf("error creating logger: %w", err)
return nil, fmt.Errorf("error creating logger: %s", err)
}
lggr = logger.Named(lggr, loggerName)
s.Logger = logger.Sugared(lggr)
Expand Down
2 changes: 1 addition & 1 deletion pkg/services/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (e *Engine) EmitHealthErr(err error) { e.emitHealthErr(err) }
func (e *Engine) SetHealthCond(condition string, err error) {
e.condsMu.Lock()
defer e.condsMu.Unlock()
e.conds[condition] = fmt.Errorf("%s: %w", condition, err)
e.conds[condition] = fmt.Errorf("%s: %e", condition, err)
}

// ClearHealthCond removes a condition and error recorded by SetHealthCond.
Expand Down

0 comments on commit 1d1f514

Please sign in to comment.