Skip to content

Commit 4876101

Browse files
committed
[server] Fix spicedb retry on DEADLINE_EXCEEDED & UNAVAILABLE
1 parent fed31ef commit 4876101

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/server/src/authorization/spicedb-authorizer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export class SpiceDBAuthorizer {
189189
try {
190190
const checkClient = attempt > 1; // the last client error'd out, so check if we should get a new one
191191
const client = this.clientProvider.getClient(checkClient);
192-
return code(client);
192+
return await code(client);
193193
} catch (err) {
194194
// Check: Is this a "no connection to upstream" error? If yes, retry here, to work around grpc/grpc-js bugs introducing high latency for re-tries
195195
if (

0 commit comments

Comments
 (0)