From 5c2f2b7d4afb8690b93bc8250d04dd3dfd1e9787 Mon Sep 17 00:00:00 2001 From: Jesse de Wit Date: Fri, 10 Nov 2023 13:07:30 +0100 Subject: [PATCH] fix golang unused variables --- snippets/go/getting_started.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/snippets/go/getting_started.go b/snippets/go/getting_started.go index 51a4124c..b50264b1 100644 --- a/snippets/go/getting_started.go +++ b/snippets/go/getting_started.go @@ -14,7 +14,7 @@ func (BreezListener) OnEvent(e breez_sdk.BreezEvent) { log.Printf("received event %#v", e) } -func GettingStarted() { +func GettingStarted() *breez_sdk.BlockingBreezServices { // Create the default config seed, err := breez_sdk.MnemonicToSeed("") if err != nil { @@ -38,6 +38,8 @@ func GettingStarted() { if err != nil { log.Fatalf("Connect failed: %#v", err) } + + return sdk } // ANCHOR_END: init-sdk