Skip to content

Commit 973b53f

Browse files
Fix: set change id
1 parent 1c7eaeb commit 973b53f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/module/module.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,9 @@ func (m *Module) sync(ctx context.Context) error {
190190
lastId = changes.Changes[i].ChangeID
191191
}
192192

193-
m.state.ChangeId = lastId
193+
if lastId > m.state.ChangeId {
194+
m.state.ChangeId = lastId
195+
}
194196
if err := m.save(ctx, cids, addressIds); err != nil {
195197
return errors.Wrap(err, "save")
196198
}

0 commit comments

Comments
 (0)