Skip to content

Commit bbeec9f

Browse files
committed
Fix re-queuing of messages when the npgsql connection is broken
if the npgsql connection is broken the cancellation token used here is triggered resulting in this message being lost as it will not be written to the channel
1 parent 9fa73fd commit bbeec9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HotChocolate/Core/src/Subscriptions.Postgres/PostgresChannelWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ private async Task HandleMessage(NpgsqlConnection connection, CancellationToken
126126
// if we cannot send the message we put it back into the channel
127127
foreach (var message in messages)
128128
{
129-
await _channel.Writer.WriteAsync(message, ct);
129+
await _channel.Writer.WriteAsync(message, CancellationToken.None);
130130
}
131131
}
132132
}

0 commit comments

Comments
 (0)