Skip to content

Commit

Permalink
fixed padding
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyakooo0 committed Jul 9, 2023
1 parent b34b9f1 commit f9d1ef2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/sink.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ Don't forget to reinitialize your `sink` when your restore your agent state in t
|= old-vase=vase
^- (quip card _this)
=/ state !<(versioned-state old-vase)
::
:: the `sink (snik entries)` is the important bit.
::
:: the `sink (snik entries)` is the important bit.
`this(state state, sink (snik entries))
```
Lastly, you need to send sink updates whenever you change your state. Most likely this will be in your `++on-poke` arm:

```hoon
Expand All @@ -79,9 +79,9 @@ main : Ur.Run.Program Model Msg
main =
Ur.Run.application
{
-- ...
-- ...
urbitSubscriptions =
-- ...
-- ...
Ur.Sub.sink
{ ship = ship
, app = "journal"
Expand All @@ -90,7 +90,7 @@ main =
D.list (D.cell D.bigint D.cord |> D.map (\a b -> ( a, b )))
|> D.map GotListings
}
-- ...
-- ...
}
```

Expand Down

0 comments on commit f9d1ef2

Please sign in to comment.