Skip to content

Commit

Permalink
appease linter
Browse files Browse the repository at this point in the history
  • Loading branch information
cam-schultz committed Sep 13, 2023
1 parent 1e9891d commit 8870d8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions database/json_file_storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ func TestConcurrentWriteReadSingleChain(t *testing.T) {
wg := sync.WaitGroup{}
for i := 0; i < 10; i++ {
wg.Add(1)
idx := i
go func() {
defer wg.Done()
testWrite(jsonStorage, networks[0], uint64(i))
testWrite(jsonStorage, networks[0], uint64(idx))
}()
}
wg.Wait()
Expand All @@ -47,7 +48,6 @@ func TestConcurrentWriteReadSingleChain(t *testing.T) {
t.Fatalf("failed to convert latest block to big.Int. err: %v", err)
}
assert.Equal(t, finalTargetValue, latestProcessedBlock.Uint64(), "latest processed block height is not correct.")

}

// Test that the JSON database can write and read from multiple chains concurrently. Write to any given chain are not concurrent.
Expand Down
1 change: 0 additions & 1 deletion relayer/relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ func NewRelayer(
responseChan chan message.InboundMessage,
destinationClients map[ids.ID]vms.DestinationClient,
) (*Relayer, vms.Subscriber, error) {

sub := vms.NewSubscriber(logger, sourceSubnetInfo, db)

subnetID, err := ids.FromString(sourceSubnetInfo.SubnetID)
Expand Down

0 comments on commit 8870d8b

Please sign in to comment.