qr243vbi commented on code in PR #3379:
URL: https://github.com/apache/thrift/pull/3379#discussion_r3055601963


##########
lib/go/thrift/server_socket.go:
##########
@@ -25,16 +26,20 @@ import (
        "time"
 )
 
+// TServerSocketListenerFactory abstracts how listeners are created.
+type TServerSocketListenerFactory func(listen bool) (net.Addr, net.Listener, 
error)

Review Comment:
   Another solution is to add a method that accepts a simplified signature 
function and an address, and then build a factory function.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to