mirror of
https://github.com/dcarrillo/whatismyip.git
synced 2025-07-04 05:49:26 +00:00
Use pointers to proper server initializing handling
This commit is contained in:
@ -15,8 +15,8 @@ type TCPServer struct {
|
||||
ctx context.Context
|
||||
}
|
||||
|
||||
func NewTCPServer(ctx context.Context, handler *http.Handler) TCPServer {
|
||||
return TCPServer{
|
||||
func NewTCPServer(ctx context.Context, handler *http.Handler) *TCPServer {
|
||||
return &TCPServer{
|
||||
handler: handler,
|
||||
ctx: ctx,
|
||||
}
|
||||
|
Reference in New Issue
Block a user