Skip to content

Commit

Permalink
Sean debugging
Browse files Browse the repository at this point in the history
TODO
  • Loading branch information
Sean-Der committed Apr 4, 2024
1 parent 85b7d47 commit bf5dd40
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ func (c *Client) PerformTransaction(msg *stun.Message, to net.Addr, ignoreResult
}

res := tr.WaitForResult()
fmt.Println("PerformTransaction", res)

Check failure on line 442 in client.go

View workflow job for this annotation

GitHub Actions / lint / Go

use of `fmt.Println` forbidden by pattern `^fmt.Print(f|ln)?$` (forbidigo)
if res.Err != nil {
return res, res.Err
}
Expand Down
1 change: 1 addition & 0 deletions internal/client/allocation.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func (a *allocation) refreshAllocation(lifetime time.Duration, dontWait bool) er

a.log.Debugf("Send refresh request (dontWait=%v)", dontWait)
trRes, err := a.client.PerformTransaction(msg, a.serverAddr, dontWait)
fmt.Println("refreshAllocation", trRes, err, dontWait)

Check failure on line 79 in internal/client/allocation.go

View workflow job for this annotation

GitHub Actions / lint / Go

use of `fmt.Println` forbidden by pattern `^fmt.Print(f|ln)?$` (forbidigo)
if err != nil {
return fmt.Errorf("%w: %s", errFailedToRefreshAllocation, err.Error())
}
Expand Down
2 changes: 1 addition & 1 deletion internal/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (c *mockClient) PerformTransaction(msg *stun.Message, to net.Addr, dontWait
if c.performTransaction != nil {
return c.performTransaction(msg, to, dontWait)
}
return TransactionResult{}, nil
return TransactionResult{}, errFake
}

func (c *mockClient) OnDeallocated(relayedAddr net.Addr) {
Expand Down

0 comments on commit bf5dd40

Please sign in to comment.