fix comment claiming ParseConnectionID reuses the data slice (#3848)

This commit is contained in:
Sukun
2023-05-21 20:24:50 +05:30
committed by GitHub
parent f401a73d27
commit cb3453db25

View File

@@ -13,8 +13,6 @@ import (
)
// ParseConnectionID parses the destination connection ID of a packet.
// It uses the data slice for the connection ID.
// That means that the connection ID must not be used after the packet buffer is released.
func ParseConnectionID(data []byte, shortHeaderConnIDLen int) (protocol.ConnectionID, error) {
if len(data) == 0 {
return protocol.ConnectionID{}, io.EOF