From 73bb6cf62b5d4dba7dbabb2f5e5e9347ef76b87a Mon Sep 17 00:00:00 2001 From: i-norden Date: Mon, 13 Mar 2023 16:58:59 -0500 Subject: [PATCH] clean up --- config.go | 1 + interfaces.go | 16 ---------------- state_database.go | 6 +++--- statedb_test.go | 1 - 4 files changed, 4 insertions(+), 20 deletions(-) diff --git a/config.go b/config.go index 8c5a40a..aba21df 100644 --- a/config.go +++ b/config.go @@ -7,6 +7,7 @@ import ( "github.com/jackc/pgx/v4/pgxpool" "github.com/jmoiron/sqlx" + _ "github.com/lib/pq" ) diff --git a/interfaces.go b/interfaces.go index 84bba3d..66b0a98 100644 --- a/interfaces.go +++ b/interfaces.go @@ -1,19 +1,3 @@ -// VulcanizeDB -// Copyright © 2023 Vulcanize - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU Affero General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Affero General Public License for more details. - -// You should have received a copy of the GNU Affero General Public License -// along with this program. If not, see . - package ipld_eth_statedb import ( diff --git a/state_database.go b/state_database.go index b7d83ea..ee115e2 100644 --- a/state_database.go +++ b/state_database.go @@ -6,14 +6,14 @@ import ( "fmt" "math/big" + "github.com/VictoriaMetrics/fastcache" + lru "github.com/hashicorp/golang-lru" + "github.com/jackc/pgx/v4/pgxpool" "github.com/jmoiron/sqlx" - "github.com/VictoriaMetrics/fastcache" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/statediff/indexer/ipld" - lru "github.com/hashicorp/golang-lru" - "github.com/jackc/pgx/v4/pgxpool" util "github.com/cerc-io/ipld-eth-statedb/internal" ) diff --git a/statedb_test.go b/statedb_test.go index 7aa3835..335522e 100644 --- a/statedb_test.go +++ b/statedb_test.go @@ -8,7 +8,6 @@ import ( "testing" "github.com/lib/pq" - "github.com/multiformats/go-multihash" "github.com/stretchr/testify/require"