Skip to content

Commit 5ed9c20

Browse files
committed
fix rebase
1 parent 50d234a commit 5ed9c20

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Cassandra/Requests/ReprepareHandler.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ public async Task ReprepareOnSingleNodeAsync(
113113
SemaphoreSlim sem,
114114
bool throwException)
115115
{
116-
HostTrackingInfo? hostInfo = null;
116+
HostTrackingInfo hostInfo = null;
117117
if (observer != null)
118118
{
119119
hostInfo = new HostTrackingInfo(poolKvp.Key, Guid.NewGuid());
120-
await observer.OnNodeStartAsync(requestTrackingInfo, hostInfo.Value).ConfigureAwait(false);
120+
await observer.OnNodeStartAsync(requestTrackingInfo, hostInfo).ConfigureAwait(false);
121121
}
122122

123123
try
@@ -130,7 +130,7 @@ public async Task ReprepareOnSingleNodeAsync(
130130
await connection.Send(request).ConfigureAwait(false);
131131
if (observer != null)
132132
{
133-
await observer.OnNodeSuccessAsync(requestTrackingInfo, hostInfo.Value).ConfigureAwait(false);
133+
await observer.OnNodeSuccessAsync(requestTrackingInfo, hostInfo).ConfigureAwait(false);
134134
}
135135
return;
136136
}
@@ -148,7 +148,7 @@ public async Task ReprepareOnSingleNodeAsync(
148148
await observer.OnNodeRequestErrorAsync(
149149
RequestError.CreateServerError(ex),
150150
requestTrackingInfo,
151-
hostInfo.Value).ConfigureAwait(false);
151+
hostInfo).ConfigureAwait(false);
152152
}
153153
return;
154154
}
@@ -163,7 +163,7 @@ await observer.OnNodeRequestErrorAsync(
163163
await observer.OnNodeRequestErrorAsync(
164164
RequestError.CreateClientError(new DriverInternalError($"Could not obtain an existing connection to prepare query on {poolKvp.Key}."), false),
165165
requestTrackingInfo,
166-
hostInfo.Value).ConfigureAwait(false);
166+
hostInfo).ConfigureAwait(false);
167167
}
168168
}
169169
catch (Exception ex)
@@ -173,7 +173,7 @@ await observer.OnNodeRequestErrorAsync(
173173
await observer.OnNodeRequestErrorAsync(
174174
RequestError.CreateServerError(ex),
175175
requestTrackingInfo,
176-
hostInfo.Value).ConfigureAwait(false);
176+
hostInfo).ConfigureAwait(false);
177177
}
178178
LogOrThrow(
179179
throwException,

0 commit comments

Comments
 (0)