Skip to content

Commit

Permalink
Specifying underlying type of conn ID atomic.Value
Browse files Browse the repository at this point in the history
Adds comment to indicate that conn ID should always be a string.

Signed-off-by: Daniel Mangum <[email protected]>
  • Loading branch information
hasheddan committed Sep 5, 2023
1 parent 70caf30 commit 2b584af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/net/udp/packet_conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ type PacketConn struct {

raddr net.Addr
rmraddr atomic.Value // bool
id atomic.Value
id atomic.Value // string

buffer *idtlsnet.PacketBuffer

Expand Down

0 comments on commit 2b584af

Please sign in to comment.