Skip to content

Commit

Permalink
chore: code lint
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyasbhat0 committed Oct 28, 2024
1 parent c1c43cd commit 548633b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions cmd/sentinel/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 0 additions & 2 deletions sentinel/event_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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())

}
8 changes: 4 additions & 4 deletions sentinel/provider_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -19,7 +20,6 @@ type ProviderConfigurationStore struct {
}

func NewProviderConfigurationStore(levelDbFolder string) (*ProviderConfigurationStore, error) {

var db *leveldb.DB
var err error
if len(levelDbFolder) == 0 {
Expand Down
3 changes: 2 additions & 1 deletion sentinel/provider_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 548633b

Please sign in to comment.