Skip to content

Commit d61b380

Browse files
committed
Fix format
1 parent f1fa2ed commit d61b380

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,12 @@ private async Task HandleMessage(NpgsqlConnection connection, CancellationToken
132132
}
133133
catch (Exception ex)
134134
{
135-
var msg = string.Format(ChannelWriter_FailedToSend, messages.Count, ex.ToString());
135+
var msg = string.Format(ChannelWriter_FailedToSend, messages.Count, ex.Message);
136136
_diagnosticEvents.ProviderInfo(msg);
137137

138138
// if we cannot send the message we put it back into the channel
139-
// however as the channel is bounded, we might not able to requeue the message and will be forced to drop them if they can't be written
139+
// however as the channel is bounded, we might not able to requeue the message and will
140+
// be forced to drop them if they can't be written
140141
var failedCount = 0;
141142

142143
foreach (var message in messages)
@@ -149,7 +150,8 @@ private async Task HandleMessage(NpgsqlConnection connection, CancellationToken
149150

150151
if (failedCount > 0)
151152
{
152-
_diagnosticEvents.ProviderInfo(string.Format(ChannelWriter_FailedToRequeueMessage, failedCount));
153+
_diagnosticEvents.ProviderInfo(
154+
string.Format(ChannelWriter_FailedToRequeueMessage, failedCount));
153155
}
154156
}
155157
}

0 commit comments

Comments
 (0)