Closed kolinfluence closed 1 year ago
is this ok? how do i ensure ipAddrSend is correctly send without the gc clearing the value?
What ipAddrSend? you meant ipAddrCopy? if so, it won't be released by GC before your task is done.
i wanted to do this directly but i worried ipAddr will be nil if it's not created new. What's your suggestion?
Can't you just check if ipAddr is nil before cRedis.Do?
Questions with details
is this ok? how do i ensure ipAddrSend is correctly send without the gc clearing the value? i wanted to do this directly but i worried ipAddr will be nil if it's not created new. What's your suggestion?
Code snippets (optional)
No response