Skip to content

Commit

Permalink
Moved from defer to explicit
Browse files Browse the repository at this point in the history
Signed-off-by: Jimmy Moore <[email protected]>
  • Loading branch information
jimmyaxod committed Oct 24, 2024
1 parent 00665e2 commit 3827c66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/migrator/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,11 @@ func (s *Syncer) Sync(sync_all_first bool, continuous bool) (*MigrationProgress,
hash := sha256.Sum256(data)

s.block_status_lock.Lock()
defer s.block_status_lock.Unlock()
if id > s.block_status[b.Block].Current_ID {
s.block_status[b.Block].Current_ID = id
s.block_status[b.Block].Current_hash = hash
}
s.block_status_lock.Unlock()
}

mig, err := NewMigrator(s.config.Tracker, s.config.Destination, s.config.Orderer, conf)
Expand Down

0 comments on commit 3827c66

Please sign in to comment.