Use pointers to proper server initializing handling

This commit is contained in:
2023-03-20 17:38:29 +01:00
parent e60d1ae5b7
commit 8783db018b
4 changed files with 13 additions and 13 deletions

View File

@ -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,
}