File tree Expand file tree Collapse file tree 5 files changed +7
-11
lines changed
ouroboros-network-protocols/src/Ouroboros/Network/Protocol/ObjectDiffusion
ouroboros-network/src/Ouroboros/Network Expand file tree Collapse file tree 5 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -137,16 +137,15 @@ encodeObjectDiffusion encodeObjectId encodeObject = encode
137
137
<> CBOR. encodeWord 1
138
138
<> CBOR. encodeListLenIndef
139
139
<> foldr
140
- ( \ ( objId, SizeInBytes sz) r ->
140
+ ( \ objId r ->
141
141
CBOR. encodeListLen 2
142
142
<> encodeObjectId objId
143
- <> CBOR. encodeWord32 sz
144
143
<> r
145
144
)
146
145
CBOR. encodeBreak
147
146
objIds'
148
147
where
149
- objIds' :: [( objectId , SizeInBytes ) ]
148
+ objIds' :: [objectId ]
150
149
objIds' = case objIds of
151
150
BlockingReply xs -> NonEmpty. toList xs
152
151
NonBlockingReply xs -> xs
@@ -204,9 +203,7 @@ decodeObjectDiffusion decodeObjectId decodeObject = decode
204
203
reverse
205
204
( do
206
205
CBOR. decodeListLenOf 2
207
- objId <- decodeObjectId
208
- sz <- CBOR. decodeWord32
209
- return (objId, SizeInBytes sz)
206
+ decodeObjectId
210
207
)
211
208
case (b, objIds) of
212
209
(SingBlocking , t : ts) ->
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ data ObjectDiffusionInboundPipelined objectId object m a where
42
42
data Collect objectId object
43
43
= -- | The result of 'SendMsgRequestObjectIdsPipelined'. It also carries
44
44
-- the number of objectIds originally requested.
45
- CollectObjectIds NumObjectIdsToReq [( objectId , SizeInBytes ) ]
45
+ CollectObjectIds NumObjectIdsToReq [objectId ]
46
46
| -- | The result of 'SendMsgRequestObjectsPipelined'. The actual reply only
47
47
-- contains the objects sent, but this pairs them up with the
48
48
-- objects requested. This is because the peer can determine that
@@ -57,7 +57,7 @@ data InboundStIdle (n :: N) objectId object m a where
57
57
NumObjectIdsToReq ->
58
58
-- | Result if done
59
59
m a ->
60
- ( NonEmpty ( objectId , SizeInBytes ) ->
60
+ ( NonEmpty objectId ->
61
61
m (InboundStIdle Z objectId object m a )
62
62
) ->
63
63
InboundStIdle Z objectId object m a
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ data OutboundStIdle objectId object m a = OutboundStIdle
64
64
65
65
data OutboundStObjectIds blocking objectId object m a where
66
66
SendMsgReplyObjectIds ::
67
- BlockingReplyList blocking ( objectId , SizeInBytes ) ->
67
+ BlockingReplyList blocking objectId ->
68
68
OutboundStIdle objectId object m a ->
69
69
OutboundStObjectIds blocking objectId object m a
70
70
-- | In the blocking case, the outbound can terminate the protocol. This could
Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ instance Protocol (ObjectDiffusion initAgency objectId object) where
272
272
-- order in which they are submitted to the mempool, to preserve dependent
273
273
-- objects.
274
274
MsgReplyObjectIds ::
275
- BlockingReplyList blocking ( objectId , SizeInBytes ) ->
275
+ BlockingReplyList blocking objectId ->
276
276
Message (ObjectDiffusion initAgency objectId object ) (StObjectIds blocking ) StIdle
277
277
-- \| Request one or more objects corresponding to the given object
278
278
-- identifiers.
Original file line number Diff line number Diff line change @@ -102,7 +102,6 @@ import Ouroboros.Network.Server.RateLimiting
102
102
import Ouroboros.Network.Snocket
103
103
import Ouroboros.Network.Socket
104
104
import Ouroboros.Network.Util.ShowProxy (ShowProxy , showProxy )
105
- import Ouroboros.Network.Protocol.ObjectDiffusion.Type (NumObjectIdsToAck )
106
105
import Ouroboros.Network.Protocol.ObjectDiffusion.Type (NumObjectsInFifo )
107
106
108
107
You can’t perform that action at this time.
0 commit comments