Skip to content

Commit

Permalink
fix: fixed deal store (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
gurinderu authored May 14, 2024
1 parent 1e2edcd commit 3b6173d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@
/src/js/src/aqua
/src/air
/src/distro/decider-spell
/src/compiled-aqua/

2 changes: 1 addition & 1 deletion src/aqua/decider/deal_storage.aqua
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ func get_joined_deals(spell_id: SpellId) -> []JoinedDeal:

func store_deal(spell_id: SpellId, deal_id: DealId, worker_id: WorkerId, block: Block):
try:
store_joined_deal(spell_id, deal_id, worker_id)
store_deal_state(spell_id, deal_id, DealState(left_boundary = block))
store_joined_deal(spell_id, deal_id, worker_id)
store_deal_state_removed(spell_id, deal_id, block)
deal_log(spell_id, deal_id, "deal state saved to kv")
catch e:
Expand Down

0 comments on commit 3b6173d

Please sign in to comment.