Skip to content

Commit 44f3e3d

Browse files
committed
feat: add first_from information to MessageInfo for enhanced message tracking
1 parent 72a8241 commit 44f3e3d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

v2/p2p/p2p.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ func (p *P2P) MessageInfo(peerID PeerID, content string) (map[string]any, error)
250250
}
251251

252252
info["seen"] = peer.seenAt[content].String()
253+
info["first_from"] = peer.firstFrom[content]
253254

254255
return info, nil
255256
}

0 commit comments

Comments
 (0)