Top-level message helpers
Top-level message helpers
(drop-ackd! {:keys [:frereth.cp.message.specs/message-loop-name]
{:keys [:frereth.cp.message.specs/ackd-addr
:frereth.cp.message.specs/send-eof
:frereth.cp.message.specs/un-ackd-blocks]
:as outgoing}
:frereth.cp.message.specs/outgoing
:as state})
(earliest-block-time message-loop-name log-state un-acked-blocks)
Calculate the earliest time
Based on earliestblocktime_compute, in lines 138-153
Calculate the earliest time Based on earliestblocktime_compute, in lines 138-153
(flag-ackd-blocks start
stop
state
{:keys [:frereth.cp.message.specs/start-pos
:frereth.cp.message.specs/transmissions
:frereth.cp.message.specs/buf]
:as block})
(mark-ackd-by-addr {{:keys [:frereth.cp.message.specs/un-ackd-blocks
:frereth.cp.message.specs/send-eof
:frereth.cp.message.specs/send-eof-acked
:frereth.cp.message.specs/strm-hwm]}
:frereth.cp.message.specs/outgoing
:keys [:frereth.cp.message.specs/message-loop-name]
:as state}
start
stop)
Mark sent blocks between positions start and stop as ACK'd
Based [cleverly] on acknowledged(), running from lines 155-185
Mark sent blocks between positions start and stop as ACK'd Based [cleverly] on acknowledged(), running from lines 155-185
(mark-block-ackd {:keys [:frereth.cp.message.specs/un-ackd-blocks] :as outgoing}
block)
Flag block ACK'd in the un-ackd set
Flag block ACK'd in the un-ackd set
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close