mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 22:06:20 +00:00
Added comment for function dnsBinaryTruncate
This commit is contained in:
parent
94c0bf978a
commit
c838376dfa
@ -717,6 +717,8 @@ func syncExtra(index map[string]dns.RR, resp *dns.Msg) {
|
||||
resp.Extra = extra
|
||||
}
|
||||
|
||||
// dnsBinaryTruncate find the optimal number of records using a fast binary search and return
|
||||
// it in order to return a DNS answer lower than maxSize parameter.
|
||||
func dnsBinaryTruncate(resp *dns.Msg, maxSize int, index map[string]dns.RR, hasExtra bool) int {
|
||||
originalAnswser := resp.Answer
|
||||
startIndex := 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user