@@ -36,10 +36,10 @@ module Ouroboros.Network.Protocol.ObjectDiffusion.Type
36
36
SingBlockingStyle (.. ),
37
37
StBlockingStyle (.. ),
38
38
BlockingReplyList (.. ),
39
- NumObjectIdsToAck (.. ),
40
- NumObjectIdsToReq (.. ),
41
- NumObjectsToReq (.. ),
42
- NumObjectsInFifo (.. ),
39
+ NumObjectIdsAck (.. ),
40
+ NumObjectIdsReq (.. ),
41
+ NumObjectsReq (.. ),
42
+ NumObjectsOutstanding (.. ),
43
43
-- re-exports
44
44
SizeInBytes (.. ),
45
45
)
@@ -158,33 +158,33 @@ data StBlockingStyle where
158
158
-- | In this state the peer must reply. There is a timeout.
159
159
StNonBlocking :: StBlockingStyle
160
160
161
- newtype NumObjectIdsToAck = NumObjectIdsToAck { getNumObjectIdsToAck :: Word16 }
161
+ newtype NumObjectIdsAck = NumObjectIdsToAck { getNumObjectIdsToAck :: Word16 }
162
162
deriving (Eq , Ord , NFData , Generic )
163
163
deriving newtype (Num , Enum , Real , Integral , Bounded , NoThunks )
164
164
deriving (Semigroup ) via (Sum Word16 )
165
165
deriving (Monoid ) via (Sum Word16 )
166
- deriving (Show ) via (Quiet NumObjectIdsToAck )
166
+ deriving (Show ) via (Quiet NumObjectIdsAck )
167
167
168
- newtype NumObjectIdsToReq = NumObjectIdsToReq { getNumObjectIdsToReq :: Word16 }
168
+ newtype NumObjectIdsReq = NumObjectIdsToReq { getNumObjectIdsToReq :: Word16 }
169
169
deriving (Eq , Ord , NFData , Generic )
170
170
deriving newtype (Num , Enum , Real , Integral , Bounded , NoThunks )
171
171
deriving (Semigroup ) via (Sum Word16 )
172
172
deriving (Monoid ) via (Sum Word16 )
173
- deriving (Show ) via (Quiet NumObjectIdsToReq )
173
+ deriving (Show ) via (Quiet NumObjectIdsReq )
174
174
175
- newtype NumObjectsToReq = NumObjectsToReq { getNumObjectsToReq :: Word16 }
175
+ newtype NumObjectsReq = NumObjectsToReq { getNumObjectsToReq :: Word16 }
176
176
deriving (Eq , Ord , NFData , Generic )
177
177
deriving newtype (Num , Enum , Real , Integral , Bounded , NoThunks )
178
178
deriving (Semigroup ) via (Sum Word16 )
179
179
deriving (Monoid ) via (Sum Word16 )
180
- deriving (Show ) via (Quiet NumObjectsToReq )
180
+ deriving (Show ) via (Quiet NumObjectsReq )
181
181
182
- newtype NumObjectsInFifo = NumObjectsInFifo { getNumObjectsInFifo :: Word16 }
182
+ newtype NumObjectsOutstanding = NumObjectsInFifo { getNumObjectsInFifo :: Word16 }
183
183
deriving (Eq , Ord , NFData , Generic )
184
184
deriving newtype (Num , Enum , Real , Integral , Bounded , NoThunks )
185
185
deriving (Semigroup ) via (Sum Word16 )
186
186
deriving (Monoid ) via (Sum Word16 )
187
- deriving (Show ) via (Quiet NumObjectsInFifo )
187
+ deriving (Show ) via (Quiet NumObjectsOutstanding )
188
188
189
189
-- | There are some constraints of the protocol that are not captured in the
190
190
-- types of the messages, but are documented with the messages. Violation
@@ -252,9 +252,9 @@ instance Protocol (ObjectDiffusion initAgency objectId object) where
252
252
MsgRequestObjectIds ::
253
253
forall (blocking :: StBlockingStyle ) initAgency objectId object .
254
254
SingBlockingStyle blocking ->
255
- NumObjectIdsToAck ->
255
+ NumObjectIdsAck ->
256
256
-- \^ Acknowledge this number of outstanding objects
257
- NumObjectIdsToReq ->
257
+ NumObjectIdsReq ->
258
258
-- \^ Request up to this number of object ids
259
259
Message (ObjectDiffusion initAgency objectId object ) StIdle (StObjectIds blocking )
260
260
-- \| Reply with a list of object identifiers for available objects, along
0 commit comments