Skip to content

Commit

Permalink
more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
aricart committed Jun 13, 2024
1 parent 7a0e89c commit 3f08c9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nats-base-client/servers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,9 @@ export class ServerImpl implements Server {
}
>,
): Promise<Server[]> {
if (!opts.fn || !opts.resolve) {
if (!opts.fn || opts.resolve === false) {
// we cannot resolve - transport doesn't support it
// or user opted out
// don't add - to resolves or we get a circ reference
return [this];
}
Expand Down

0 comments on commit 3f08c9f

Please sign in to comment.