Skip to content

Commit f3fa469

Browse files
committed
tried to fix the build
1 parent e96ff83 commit f3fa469

File tree

3 files changed

+1
-43
lines changed

3 files changed

+1
-43
lines changed

src/SuperSocket.MySQL/MySQLConnection.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ public async Task ConnectAsync(CancellationToken cancellationToken = default)
8888
? errorPacket.ErrorMessage
8989
: "Authentication failed";
9090
throw new InvalidOperationException($"MySQL authentication failed: {errorMsg} (Error {errorPacket.ErrorCode})");
91-
case EOFPacket eofPacket:
92-
throw new InvalidOperationException($"MySQL authentication failed.");
9391
default:
9492
throw new InvalidOperationException($"Unexpected packet received during authentication: {authResult?.GetType().Name ?? "null"}");
9593
}

src/SuperSocket.MySQL/MySQLPacketFactory.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ static MySQLPacketFactory()
1515
ClientInstance = new MySQLPacketFactory()
1616
.RegisterPacketType<HandshakePacket>(-1)
1717
.RegisterPacketType<OKPacket>(0x00)
18-
.RegisterPacketType<ErrorPacket>(0xFF)
19-
.RegisterPacketType<EOFPacket>(0xFE);
18+
.RegisterPacketType<ErrorPacket>(0xFF);
2019
}
2120

2221
private readonly Dictionary<int, Func<MySQLPacket>> _packetCreators = new();

src/SuperSocket.MySQL/Packets/EOFPacket.cs

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)