Skip to content

Commit

Permalink
fix(server): fix libp2p geo conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
Savid committed Apr 19, 2024
1 parent 789f509 commit 72f08b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (tc *TraceConnected) AppendServerMeta(ctx context.Context, meta *xatu.Serve
}

multiaddr := data.Libp2PTraceConnected.GetRemoteMaddrs().GetValue()
if multiaddr != "" {
if multiaddr == "" {
return meta
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (td *TraceDisconnected) AppendServerMeta(ctx context.Context, meta *xatu.Se
}

multiaddr := data.Libp2PTraceDisconnected.GetRemoteMaddrs().GetValue()
if multiaddr != "" {
if multiaddr == "" {
return meta
}

Expand Down

0 comments on commit 72f08b0

Please sign in to comment.