[signal] Move dummy signal message handling into dispatcher (#2686)

This commit is contained in:
pascal-fischer
2024-10-02 15:33:38 +02:00
committed by GitHub
parent b7b0828133
commit 7e5d3bdfe2
3 changed files with 3 additions and 8 deletions

View File

@@ -71,11 +71,6 @@ func NewServer(ctx context.Context, meter metric.Meter) (*Server, error) {
func (s *Server) Send(ctx context.Context, msg *proto.EncryptedMessage) (*proto.EncryptedMessage, error) {
log.Debugf("received a new message to send from peer [%s] to peer [%s]", msg.Key, msg.RemoteKey)
if msg.RemoteKey == "dummy" {
// Test message send during netbird status
return &proto.EncryptedMessage{}, nil
}
if _, found := s.registry.Get(msg.RemoteKey); found {
s.forwardMessageToPeer(ctx, msg)
return &proto.EncryptedMessage{}, nil