added read logic and more printfs

This commit is contained in:
Isaac Visintainer 2019-01-03 18:04:49 -08:00
parent 10a150d5c2
commit 75c2ccf6ed
2 changed files with 25 additions and 0 deletions

View File

@ -138,6 +138,7 @@
++ peer
|= wir=wire
^- (quip move _this)
~& peer-prize+str.sta
:_ this
[ost.bol %diff %collections-prize str.sta]~
::
@ -384,6 +385,17 @@
%= this
circles.str.sta (~(put by circles.str.sta) circ `conf)
==
::
:: %read: recieved a read reciept
::
%read
?. =([our.bol %inbox] cir.rum.rum)
[~ this]
?> ?=(^ con.inbox.str.sta)
:- ~
%= this
red.u.con.inbox.str.sta red.dif.rum.rum
==
==
==
::
@ -428,6 +440,16 @@
%= this
circles.str.sta (~(put by circles.str.sta) circ `conf)
==
::
:: %read: recieved a read reciept
::
%read
=/ conf (need (~(got by circles.str.sta) circ))
=. red.conf red.dif.rum.rum
:- ~
%= this
circles.str.sta (~(put by circles.str.sta) circ `conf)
==
==
==
==

View File

@ -729,6 +729,9 @@
^- {? _.}
=+ suy=(fall (~(get by qel.ged) ost) 0)
?: =(20 suy)
~& %'----------------------------------------------------------------'
~& %'AP-FILL-FULL'
~& %'----------------------------------------------------------------'
:: ~& [%ap-fill-full [our dap] q.q.pry ost]
[%| +]
:: ~? !=(20 suy) [%ap-fill-add [[our dap] q.q.pry ost] +(suy)]