From 55c9d4ee456e81557f0b93ec269d80a367a0f7ac Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Fri, 27 Jun 2025 16:28:21 -0300 Subject: [PATCH] remove the bunker context timeout because it causes the entire bunker to disconnect. --- helpers_key.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/helpers_key.go b/helpers_key.go index 2c21fa5..7f3285b 100644 --- a/helpers_key.go +++ b/helpers_key.go @@ -2,11 +2,9 @@ package main import ( "context" - "errors" "fmt" "os" "strings" - "time" "fiatjaf.com/nostr" "fiatjaf.com/nostr/keyer" @@ -79,16 +77,10 @@ func gatherSecretKeyOrBunkerFromArguments(ctx context.Context, c *cli.Command) ( logverbose("[nip46]: connecting to %s with client key %s", bunkerURL, clientKey.Hex()) - ctx, cancel := context.WithTimeout(ctx, 10*time.Second) - defer cancel() - bunker, err := nip46.ConnectBunker(ctx, clientKey, bunkerURL, nil, func(s string) { log(color.CyanString("[nip46]: open the following URL: %s"), s) }) if err != nil { - if errors.Is(ctx.Err(), context.DeadlineExceeded) { - err = fmt.Errorf("timeout waiting for bunker to respond: %w", err) - } return nostr.SecretKey{}, nil, fmt.Errorf("failed to connect to %s: %w", bunkerURL, err) }