Skip to content

Commit ba4ba43

Browse files
committed
Avoid unecessary Timelock record writes on backup worker
1 parent ed310b4 commit ba4ba43

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/code/async/geyser/timelock.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ func updateTimelockAccountRecord(ctx context.Context, data code_data.Provider, t
2626

2727
unlockAt := uint64(unlockState.UnlockAt)
2828
timelockRecord.UnlockAt = &unlockAt
29-
}
30-
31-
if timelockRecord.VaultState == timelock_token.StateUnknown {
29+
} else {
3230
return nil
3331
}
3432

0 commit comments

Comments
 (0)