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 72e60a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
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)

Check warning on line 442 in client.go

View check run for this annotation

Codecov / codecov/patch

client.go#L442

Added line #L442 was not covered by tests
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)

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

View check run for this annotation

Codecov / codecov/patch

internal/client/allocation.go#L79

Added line #L79 was not covered by tests
if err != nil {
return fmt.Errorf("%w: %s", errFailedToRefreshAllocation, err.Error())
}
Expand Down

0 comments on commit 72e60a3

Please sign in to comment.