mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-22 16:13:31 +01:00
chore: fix golint error
This commit is contained in:
parent
11174a50cd
commit
c49bd23ac5
@ -60,22 +60,28 @@ var _ = Describe("Client", func() {
|
|||||||
clientB := createSignalClient(addr, keyB)
|
clientB := createSignalClient(addr, keyB)
|
||||||
clientB.Receive(func(msg *sigProto.Message) error {
|
clientB.Receive(func(msg *sigProto.Message) error {
|
||||||
receivedOnB = msg.GetBody().GetPayload()
|
receivedOnB = msg.GetBody().GetPayload()
|
||||||
clientB.Send(&sigProto.Message{
|
err := clientB.Send(&sigProto.Message{
|
||||||
Key: keyB.PublicKey().String(),
|
Key: keyB.PublicKey().String(),
|
||||||
RemoteKey: keyA.PublicKey().String(),
|
RemoteKey: keyA.PublicKey().String(),
|
||||||
Body: &sigProto.Body{Payload: "pong"},
|
Body: &sigProto.Body{Payload: "pong"},
|
||||||
})
|
})
|
||||||
|
if err != nil {
|
||||||
|
Fail("failed sending a message to {PeerA}")
|
||||||
|
}
|
||||||
msgReceived.Done()
|
msgReceived.Done()
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
clientB.WaitConnected()
|
clientB.WaitConnected()
|
||||||
|
|
||||||
// PeerA initiates ping-pong
|
// PeerA initiates ping-pong
|
||||||
clientA.Send(&sigProto.Message{
|
err := clientA.Send(&sigProto.Message{
|
||||||
Key: keyA.PublicKey().String(),
|
Key: keyA.PublicKey().String(),
|
||||||
RemoteKey: keyB.PublicKey().String(),
|
RemoteKey: keyB.PublicKey().String(),
|
||||||
Body: &sigProto.Body{Payload: "ping"},
|
Body: &sigProto.Body{Payload: "ping"},
|
||||||
})
|
})
|
||||||
|
if err != nil {
|
||||||
|
Fail("failed sending a message to PeerB")
|
||||||
|
}
|
||||||
|
|
||||||
msgReceived.Wait()
|
msgReceived.Wait()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user