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?

@jedisct1 jedisct1 closed this in 900933d Dec 31, 2025
@jedisct1
Copy link
Member

Thanks!

@ACEx86 ACEx86 deleted the z1 branch January 12, 2026 01:31
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