forked from quic-go/quic-go
don't return a stateless reset token when adding a new connection ID
Both server and client didn't make use of the token. It was only used by the connIDGenerator.
This commit is contained in:
@@ -95,11 +95,10 @@ func (h *packetHandlerMap) logUsage() {
|
||||
}
|
||||
}
|
||||
|
||||
func (h *packetHandlerMap) Add(id protocol.ConnectionID, handler packetHandler) [16]byte {
|
||||
func (h *packetHandlerMap) Add(id protocol.ConnectionID, handler packetHandler) {
|
||||
h.mutex.Lock()
|
||||
h.handlers[string(id)] = handler
|
||||
h.mutex.Unlock()
|
||||
return h.GetStatelessResetToken(id)
|
||||
}
|
||||
|
||||
func (h *packetHandlerMap) AddIfNotTaken(id protocol.ConnectionID, handler packetHandler) bool /* was added */ {
|
||||
|
||||
Reference in New Issue
Block a user