Skip to content

Commit 0f07604

Browse files
committed
Move.
1 parent 1d1af97 commit 0f07604

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
package keystore
1+
package pgstore
22

33
import (
44
"context"
55

6+
"github.com/smartcontractkit/chainlink-common/keystore"
67
"github.com/smartcontractkit/chainlink-common/pkg/sqlutil"
78
)
89

9-
var _ Storage = &PgStorage{}
10+
var _ keystore.Storage = &PgStorage{}
1011

1112
// PgStorage implements Storage using a Postgres database
1213
type PgStorage struct {
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
package keystore_test
1+
package pgstore_test
22

33
import (
44
"database/sql"
55
"testing"
66

77
"github.com/stretchr/testify/require"
88

9-
"github.com/smartcontractkit/chainlink-common/keystore"
9+
"github.com/smartcontractkit/chainlink-common/keystore/pgstore"
1010
"github.com/smartcontractkit/chainlink-common/pkg/sqlutil/sqltest"
1111
)
1212

@@ -16,7 +16,7 @@ func TestPgStorage(t *testing.T) {
1616
db := sqltest.NewDB(t, sqltest.TestURL(t))
1717
t.Cleanup(func() { require.NoError(t, db.Close()) })
1818

19-
storage := keystore.NewPgStorage(db, "test")
19+
storage := pgstore.NewPgStorage(db, "test")
2020
_, err := storage.GetEncryptedKeystore(t.Context())
2121
require.ErrorIs(t, err, sql.ErrNoRows)
2222
require.NoError(t, storage.PutEncryptedKeystore(t.Context(), []byte("test")))

0 commit comments

Comments
 (0)