Skip to content

Commit

Permalink
fix(sync): fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeneux committed Nov 23, 2022
1 parent 8506840 commit 0f68dbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/actor/synchronization/actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ type Actor struct {
currentBlock int64
}

func NewActor(grpcClientProps *actor.Props, eventStore *actor.PID, mongoUri, dbName string) (*Actor, error) {
func NewActor(grpcClientProps *actor.Props, eventStore *actor.PID, mongoURI, dbName string) (*Actor, error) {
ctx := context.Background()
store, err := offset.NewStore(ctx, mongoUri, dbName, ownerOffset)
store, err := offset.NewStore(ctx, mongoURI, dbName, ownerOffset)
if err != nil {
return nil, err
}

storeValue, err := store.Get(ctx)
storeValue, _ := store.Get(ctx)
var currentBlock int64
switch resp := storeValue.(type) {
case int64:
Expand Down
2 changes: 1 addition & 1 deletion app/message/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type NewEventMessage struct {

type BrokenStreamMessage struct{}

// GetBlock Ask to requets a block at a given height
// GetBlock Ask to requets a block at a given height.
type GetBlock struct {
// Height of the block to get
Height int64
Expand Down

0 comments on commit 0f68dbb

Please sign in to comment.