Skip to content

Commit

Permalink
fix bad import
Browse files Browse the repository at this point in the history
  • Loading branch information
poopoothegorilla committed Jan 22, 2024
1 parent 7865715 commit fd4146f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions charts/chainlink-cluster/dashboard/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"fmt"
"net/http"

"cosmossdk.io/errors"
"github.com/K-Phoen/grabana"
"github.com/K-Phoen/grabana/dashboard"
"github.com/K-Phoen/grabana/logs"
Expand All @@ -15,6 +14,7 @@ import (
"github.com/K-Phoen/grabana/timeseries"
"github.com/K-Phoen/grabana/timeseries/axis"
"github.com/K-Phoen/grabana/variable/query"
pkgerrors "github.com/pkg/errors"
)

/*
Expand Down Expand Up @@ -954,10 +954,10 @@ func (m *CLClusterDashboard) Deploy(ctx context.Context) error {
client := grabana.NewClient(&http.Client{}, m.GrafanaURL, grabana.WithAPIToken(m.GrafanaToken))
folder, err := client.FindOrCreateFolder(ctx, m.Folder)
if err != nil {
return errors.Wrap(err, ErrFailedToCreateFolder)
return pkgerrors.Wrap(err, ErrFailedToCreateFolder)
}
if _, err := client.UpsertDashboard(ctx, folder, m.builder); err != nil {
return errors.Wrap(err, ErrFailedToCreateDashboard)
return pkgerrors.Wrap(err, ErrFailedToCreateDashboard)
}
return nil
}
6 changes: 3 additions & 3 deletions core/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/hex"
"fmt"

"cosmossdk.io/errors"
pkgerrors "github.com/pkg/errors"
"github.com/smartcontractkit/chainlink/v2/core/utils"

"golang.org/x/crypto/sha3"
Expand All @@ -14,7 +14,7 @@ var (
// ErrorAuthFailed is a generic authentication failed - but not because of
// some system failure on our behalf (i.e. HTTP 5xx), more detail is not
// given
ErrorAuthFailed = errors.New("Authentication failed")
ErrorAuthFailed = pkgerrors.New("Authentication failed")
)

// Token is used for API authentication.
Expand Down Expand Up @@ -57,7 +57,7 @@ func HashedSecret(ta *Token, salt string) (string, error) {
hasher := sha3.New256()
_, err := hasher.Write(hashInput(ta, salt))
if err != nil {
return "", errors.Wrap(err, "error writing external initiator authentication to hasher")
return "", pkgerrors.Wrap(err, "error writing external initiator authentication to hasher")
}
return hex.EncodeToString(hasher.Sum(nil)), nil
}
6 changes: 3 additions & 3 deletions integration-tests/universal/log_poller/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"os"
"strconv"

"cosmossdk.io/errors"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/pelletier/go-toml/v2"
pkgerrors "github.com/pkg/errors"
"github.com/rs/zerolog/log"

commonconfig "github.com/smartcontractkit/chainlink-common/pkg/config"
Expand Down Expand Up @@ -76,11 +76,11 @@ func ReadConfig(configName string) (*Config, error) {
var cfg *Config
d, err := os.ReadFile(configName)
if err != nil {
return nil, errors.Wrap(err, ErrReadPerfConfig)
return nil, pkgerrors.Wrap(err, ErrReadPerfConfig)
}
err = toml.Unmarshal(d, &cfg)
if err != nil {
return nil, errors.Wrap(err, ErrUnmarshalPerfConfig)
return nil, pkgerrors.Wrap(err, ErrUnmarshalPerfConfig)
}

if err := cfg.validate(); err != nil {
Expand Down

0 comments on commit fd4146f

Please sign in to comment.