remove ConnectionID.Equal function

Connection IDs can now be compared with ==.
This commit is contained in:
Marten Seemann
2022-08-28 16:11:28 +03:00
parent 1aced95d41
commit 4cbb4f8114
9 changed files with 17 additions and 34 deletions

View File

@@ -84,7 +84,7 @@ func (m *connIDGenerator) Retire(seq uint64, sentWithDestConnID protocol.Connect
if !ok {
return nil
}
if connID.Equal(sentWithDestConnID) {
if connID == sentWithDestConnID {
return &qerr.TransportError{
ErrorCode: qerr.ProtocolViolation,
ErrorMessage: fmt.Sprintf("retired connection ID %d (%s), which was used as the Destination Connection ID on this packet", seq, connID),