Remove hardcoded 5-minute timeout for permission requests (#43)
This commit is contained in:
@@ -531,7 +531,7 @@ func (m *Manager) handlePermissionRequest(ctx context.Context, req *adapter.Perm
|
||||
// We use a custom notification type that the backend will recognize
|
||||
m.sendPermissionNotification(pending)
|
||||
|
||||
// Wait for response with timeout
|
||||
// Wait for response indefinitely - user may close and reopen the page
|
||||
select {
|
||||
case resp := <-pending.ResponseCh:
|
||||
m.logger.Info("received permission response",
|
||||
@@ -543,10 +543,6 @@ func (m *Manager) handlePermissionRequest(ctx context.Context, req *adapter.Perm
|
||||
m.logger.Warn("permission request context cancelled",
|
||||
zap.String("pending_id", pendingID))
|
||||
return &adapter.PermissionResponse{Cancelled: true}, nil
|
||||
case <-time.After(5 * time.Minute):
|
||||
m.logger.Warn("permission request timed out",
|
||||
zap.String("pending_id", pendingID))
|
||||
return &adapter.PermissionResponse{Cancelled: true}, nil
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user