remove unused perspective arg from packetHandlerMap.ReplaceWithClosed (#4330)

This commit is contained in:
Marten Seemann
2024-02-11 10:27:51 +07:00
committed by GitHub
parent 7b8ceaa264
commit c786a46f42
8 changed files with 30 additions and 32 deletions

View File

@@ -164,7 +164,7 @@ func (h *packetHandlerMap) Retire(id protocol.ConnectionID) {
// Depending on which side closed the connection, we need to:
// * remote close: absorb delayed packets
// * local close: retransmit the CONNECTION_CLOSE packet, in case it was lost
func (h *packetHandlerMap) ReplaceWithClosed(ids []protocol.ConnectionID, pers protocol.Perspective, connClosePacket []byte) {
func (h *packetHandlerMap) ReplaceWithClosed(ids []protocol.ConnectionID, connClosePacket []byte) {
var handler packetHandler
if connClosePacket != nil {
handler = newClosedLocalConn(