diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-07-09 18:03:14 -0230 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-07-09 18:03:23 -0230 |
| commit | c75771d60bf3dd4dd7e98b2212550354a3154a24 (patch) | |
| tree | 3d077fbb30a501b693773b80b87eb5c0ba6c8fbf /callback_handler_test.go | |
| parent | 4eba6615431acf2ccfa8d70f63b3fc6aa54b62b4 (diff) | |
| download | xmrpayclnt-c75771d60bf3dd4dd7e98b2212550354a3154a24.zip | |
Set timeout by passing HTTP client to constructor instead.
Diffstat (limited to 'callback_handler_test.go')
| -rw-r--r-- | callback_handler_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/callback_handler_test.go b/callback_handler_test.go index e303a70..d1ed083 100644 --- a/callback_handler_test.go +++ b/callback_handler_test.go @@ -2,7 +2,6 @@ package xmrpayclnt_test import ( "bytes" - "context" "encoding/json" "fmt" "log" @@ -43,7 +42,7 @@ func ExampleCallbackHandler() { // Request a transfer and register a callback for it clnt := xmrpay.New(xmrPaySrvUrl) - resp, cb, err := clnt.NewTxWithCallback(context.Background(), 123, "lorem ipsum", cbHlr) + resp, cb, err := clnt.NewTxWithCallback(123, "lorem ipsum", cbHlr) if err != nil { log.Fatal(err) } |