Skip to content

Conversation

@ACEx86
Copy link

@ACEx86 ACEx86 commented Dec 29, 2025

Change return type of plainNXTestPacket to pointer.

Return copies the lock value: type 'dns.Msg' contains 'atomic.Bool' contains 'interface{}' which is 'sync.Locker'

Change return type of plainNXTestPacket to pointer.

Return copies the lock value: type 'dns.Msg' contains 'atomic.Bool' contains 'interface{}' which is 'sync.Locker'
@jedisct1
Copy link
Member

?

@ACEx86
Copy link
Author

ACEx86 commented Dec 29, 2025

IDE warning. return *msg returns a copy of dns.Msg that in the struct has Mutex that is not to be copied?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants