Skip to content

Commit c0768e0

Browse files
committed
Mark struct as readonly.
1 parent c86af2e commit c0768e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MySqlConnector/Core/BackgroundConnectionResetHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public static async Task ReturnSessionsAsync()
124124
}
125125
}
126126

127-
internal struct SessionResetTask
127+
internal readonly struct SessionResetTask
128128
{
129129
public SessionResetTask(ServerSession session, Task<bool> resetTask, MySqlConnection? owningConnection)
130130
{

0 commit comments

Comments
 (0)