mirror of
https://github.com/urbit/shrub.git
synced 2024-11-29 14:57:12 +03:00
allow range queries for inbox on collections primary subscription
This commit is contained in:
parent
c7f57a3467
commit
98d9c44fd1
@ -195,9 +195,30 @@
|
||||
++ peer
|
||||
|= wir=wire
|
||||
^- (quip move _this)
|
||||
::~& peer-prize+str.sta
|
||||
=/ response=streams
|
||||
?+ wir
|
||||
%= str.sta
|
||||
env.inbox (scag 1.000 env.inbox.str.sta)
|
||||
==
|
||||
:: negative range from latest
|
||||
::
|
||||
[%primary @t ~]
|
||||
=/ val=@ (slav %ud i.t.wir)
|
||||
%= str.sta
|
||||
env.inbox (scag val env.inbox.str.sta)
|
||||
==
|
||||
:: negative range from offset
|
||||
::
|
||||
[%primary @t @t ~]
|
||||
=/ offset=@ (slav %ud i.t.wir)
|
||||
=/ num=@ (slav %ud i.t.t.wir)
|
||||
%= str.sta
|
||||
env.inbox (swag [offset num] env.inbox.str.sta)
|
||||
==
|
||||
::
|
||||
==
|
||||
:_ this
|
||||
[ost.bol %diff %collections-prize str.sta]~
|
||||
[ost.bol %diff %collections-prize response]~
|
||||
::
|
||||
:: +reap: recieve acknowledgement for peer, retry on failure
|
||||
::
|
||||
|
Loading…
Reference in New Issue
Block a user