From 50d9b06c66260f0c2ecf232df765d3d812f623d9 Mon Sep 17 00:00:00 2001 From: Damon To Date: Mon, 17 Jun 2024 10:33:01 +0800 Subject: [PATCH] chore: Increase APDU command response timeout to 2 minutes --- internal/cloud/apdu.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cloud/apdu.go b/internal/cloud/apdu.go index 11a90a1..ee340e3 100644 --- a/internal/cloud/apdu.go +++ b/internal/cloud/apdu.go @@ -42,7 +42,7 @@ func (a *apdu) Transmit(command string) (string, error) { select { case r := <-a.receiver: return hex.EncodeToString(r), nil - case <-time.After(1 * time.Minute): // If response is not received in 1 minute, return a timeout error. + case <-time.After(2 * time.Minute): // If response is not received in 2 minutes, return a timeout error. slog.Debug("wait for APDU command response timeout", "conn", a.conn.Id, "command", command, "response", APDUCommunicateTimeout) return hex.EncodeToString([]byte(APDUCommunicateTimeout)), nil }