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) }