Skip to content

Commit

Permalink
core: fixing DutyDB Store function (#2800)
Browse files Browse the repository at this point in the history
DutyDB's `Store()` function has inconsistent handling for `DutySyncContribution`.

category: bug
ticket: none
  • Loading branch information
pinebit authored Jan 19, 2024
1 parent 0576b16 commit bd8ae06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/dutydb/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ func (db *MemDB) Store(_ context.Context, duty core.Duty, unsignedSet core.Unsig
if err != nil {
return err
}
db.resolveContribQueriesUnsafe()
}
db.resolveContribQueriesUnsafe()
default:
return errors.New("unsupported duty type", z.Str("type", duty.Type.String()))
}
Expand Down

0 comments on commit bd8ae06

Please sign in to comment.