mesh: remove unused MsgSyncRequest/MsgSyncReply types

Fuck em.

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I725b137678112580cd7445a8d12f52f56a6a6964
This commit is contained in:
raf 2026-03-06 18:36:02 +03:00
commit e567491856
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
3 changed files with 4 additions and 6 deletions

View file

@ -60,7 +60,7 @@ func TestAnnounceAndReceive(t *testing.T) {
func TestRejectUnknownSender(t *testing.T) { func TestRejectUnknownSender(t *testing.T) {
store := mesh.NewRouteStore() store := mesh.NewRouteStore()
// Listener node — will reject messages not from trusted // Listener node, this'll reject messages not from trusted
trusted, err := mesh.NewNode("", nil) trusted, err := mesh.NewNode("", nil)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
@ -90,7 +90,7 @@ func TestRejectUnknownSender(t *testing.T) {
} }
func TestRejectTamperedMessage(t *testing.T) { func TestRejectTamperedMessage(t *testing.T) {
// This is covered by TestVerifyFailsOnTamper in mesh_test.go at the crypto level. // This is covered by TestVerifyFailsOnTamper the mesh tests on the crypto level.
// Here we verify the full pipeline rejects a re-signed-but-tampered body. // Here we verify the full pipeline rejects a re-signed-but-tampered body.
store := mesh.NewRouteStore() store := mesh.NewRouteStore()
node, err := mesh.NewNode("", store) node, err := mesh.NewNode("", store)

View file

@ -19,8 +19,6 @@ type MsgType uint8
const ( const (
MsgAnnounce MsgType = 1 MsgAnnounce MsgType = 1
MsgSyncRequest MsgType = 2
MsgSyncReply MsgType = 3
) )
// Wire format for gossip messages. // Wire format for gossip messages.