From c75771d60bf3dd4dd7e98b2212550354a3154a24 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Thu, 9 Jul 2026 18:03:14 -0230 Subject: remove context from methods Set timeout by passing HTTP client to constructor instead. --- callback_handler_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'callback_handler_test.go') 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) } -- cgit v1.2.3