diff --git a/cmd/sentinel/main.go b/cmd/sentinel/main.go index 7d1d6d26..7e2e02d5 100644 --- a/cmd/sentinel/main.go +++ b/cmd/sentinel/main.go @@ -14,8 +14,8 @@ func main() { c.SetBech32PrefixForAccount(app.AccountAddressPrefix, app.AccountAddressPrefix+"pub") config := conf.NewConfiguration() - proxy , err := sentinel.NewProxy(config) - if err!=nil{ + proxy, err := sentinel.NewProxy(config) + if err != nil { fmt.Println(err) return } diff --git a/sentinel/event_stream.go b/sentinel/event_stream.go index 0ab5e82d..90e71d8f 100644 --- a/sentinel/event_stream.go +++ b/sentinel/event_stream.go @@ -335,7 +335,6 @@ func (p Proxy) handleBondProviderEvent(result tmCoreTypes.ResultEvent) { return } p.logger.Info("Provider configuration updated on bond provider event", "pubkey", evt.Provider.String(), "service", service.String()) - } func (p Proxy) handleModProviderEvent(result tmCoreTypes.ResultEvent) { typedEvent, err := parseTypedEvent(result, "arkeo.arkeo.EventModProvider") @@ -379,5 +378,4 @@ func (p Proxy) handleModProviderEvent(result tmCoreTypes.ResultEvent) { return } p.logger.Info("Provider configuration updated on mod provider event", "pubkey", evt.Provider.String(), "service", service.String()) - } diff --git a/sentinel/provider_store.go b/sentinel/provider_store.go index 367e6e2f..922b6290 100644 --- a/sentinel/provider_store.go +++ b/sentinel/provider_store.go @@ -4,13 +4,14 @@ import ( "encoding/json" "fmt" - "github.com/arkeonetwork/arkeo/common" - "github.com/arkeonetwork/arkeo/common/cosmos" - "github.com/arkeonetwork/arkeo/x/arkeo/types" "github.com/rs/zerolog" "github.com/rs/zerolog/log" "github.com/syndtr/goleveldb/leveldb" "github.com/syndtr/goleveldb/leveldb/storage" + + "github.com/arkeonetwork/arkeo/common" + "github.com/arkeonetwork/arkeo/common/cosmos" + "github.com/arkeonetwork/arkeo/x/arkeo/types" ) type ProviderConfigurationStore struct { @@ -19,7 +20,6 @@ type ProviderConfigurationStore struct { } func NewProviderConfigurationStore(levelDbFolder string) (*ProviderConfigurationStore, error) { - var db *leveldb.DB var err error if len(levelDbFolder) == 0 { diff --git a/sentinel/provider_store_test.go b/sentinel/provider_store_test.go index 8f962968..ec669703 100644 --- a/sentinel/provider_store_test.go +++ b/sentinel/provider_store_test.go @@ -3,10 +3,11 @@ package sentinel import ( "testing" + "github.com/stretchr/testify/require" + "github.com/arkeonetwork/arkeo/common" "github.com/arkeonetwork/arkeo/common/cosmos" "github.com/arkeonetwork/arkeo/x/arkeo/types" - "github.com/stretchr/testify/require" ) func TestNewProviderConfigurationStore_InMemory(t *testing.T) {