Skip to content

Commit c09ef8f

Browse files
nack message to string
1 parent a7ea26d commit c09ef8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MessageTypes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export function stringifyMessage(msg: Message): string {
7070
case 'transfer': return `transfer ${(msg as TransferMessage).amount}`;
7171
case 'probe': return `probe ${(msg as ProbeMessage).probeId}:${(msg as ProbeMessage).incarnation} ${(msg as ProbeMessage).debugInfo.path.join(' ')}`;
7272
case 'follow': return `follow ${(msg as ProbeMessage).probeId}:${(msg as FollowMessage).incarnation} ${(msg as FollowMessage).followee} ${(msg as ProbeMessage).debugInfo.path.join(' ')}`;
73-
case 'nack': return `nack ${(msg as NackMessage).probeId}:${(msg as NackMessage).incarnation} ${(msg as NackMessage).debugInfo.path.join(' ')} / ${((msg as NackMessage).debugInfo.backtracked || []).join(' ')}`;
73+
case 'nack': return `nack ${(msg as NackMessage).probeId}:${(msg as NackMessage).incarnation} ${(msg as NackMessage).discardLink} ${(msg as NackMessage).debugInfo.path.join(' ')} / ${((msg as NackMessage).debugInfo.backtracked || []).join(' ')}`;
7474
case 'scout': return `scout ${(msg as ScoutMessage).probeId}:${(msg as ScoutMessage).maxIncarnation}- ${(msg as ScoutMessage).amount} ${(msg as ScoutMessage).debugInfo.loop.join(' ')}`;
7575
case 'propose': return `propose ${(msg as ProposeMessage).probeId}:${(msg as ProposeMessage).maxIncarnation}- ${(msg as ProposeMessage).amount} ${(msg as ProposeMessage).hash} ${(msg as ProposeMessage).debugInfo.loop.join(' ')}`;
7676
case 'commit': return `commit ${(msg as CommitMessage).probeId}:~- ${(msg as CommitMessage).amount} ${(msg as CommitMessage).preimage} ${(msg as ProposeMessage).debugInfo.loop.join(' ')}`;

0 commit comments

Comments
 (0)