Skip to content

Commit

Permalink
activity: insert missing volume defaults in +load
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolajpp committed Nov 20, 2024
1 parent 7116114 commit 54b342b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions desk/app/activity.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,13 @@
=? old ?=(%7 -.old) [%8 +.old]
?> ?=(%8 -.old)
=. state old
:: :: insert missing volume defaults to %base
:: ::
:: =/ base-volume
:: (~(gut by volume-settings.state) [%base ~] *volume-map:a)
:: =. volume-settings.state
:: %+ ~(put by volume-settings.state) [%base ~]
:: (~(uni by base-volume) *volume-map:a)
:: insert missing volume defaults to %base
::
=/ base-volume
(~(gut by volume-settings.state) [%base ~] *volume-map:a)
=. volume-settings.state
%+ ~(put by volume-settings.state) [%base ~]
(~(uni by base-volume) *volume-map:a)
=. allowed %all
(emit %pass /fix-init-unreads %agent [our.bowl dap.bowl] %poke noun+!>(%fix-init-unreads))
+$ versioned-state
Expand Down

0 comments on commit 54b342b

Please sign in to comment.