From beffab99a0b11a7a01553541a4d64253845a83ca Mon Sep 17 00:00:00 2001 From: Trolli Schmittlauch Date: Tue, 19 May 2020 19:50:36 +0200 Subject: [PATCH] clarify counting of FediChordMessage parts --- FediChord.asn1 | 4 ++-- src/Hash2Pub/ProtocolTypes.hs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/FediChord.asn1 b/FediChord.asn1 index 7c53cb0..dda8bdc 100644 --- a/FediChord.asn1 +++ b/FediChord.asn1 @@ -10,8 +10,8 @@ Request ::= SEQUENCE { action Action, requestID INTEGER, sender NodeState, - parts INTEGER (0..150), -- number of message parts - part INTEGER (0..150), -- part number of this message, starts at 1 + parts INTEGER (1..150), -- number of message parts + part INTEGER (1..150), -- part number of this message, starts at 1 actionPayload CHOICE { queryIDRequestPayload QueryIDRequestPayload, joinRequestPayload JoinRequestPayload, diff --git a/src/Hash2Pub/ProtocolTypes.hs b/src/Hash2Pub/ProtocolTypes.hs index de51fad..c7453ab 100644 --- a/src/Hash2Pub/ProtocolTypes.hs +++ b/src/Hash2Pub/ProtocolTypes.hs @@ -23,7 +23,7 @@ data FediChordMessage = Request , sender :: NodeState , parts :: Integer , part :: Integer - -- ^ part starts at 0 + -- ^ part starts at 1 , action :: Action , payload :: Maybe ActionPayload }