From 8cd0d73662673e7e4b48588f7de43f0c3da95a02 Mon Sep 17 00:00:00 2001 From: Max Malekzadeh Date: Thu, 12 Sep 2024 16:33:08 -0400 Subject: [PATCH] Normalize the codebase (Issue #16) --- internal/tcp/server.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/tcp/server.go b/internal/tcp/server.go index e53ece0..265a931 100644 --- a/internal/tcp/server.go +++ b/internal/tcp/server.go @@ -17,7 +17,11 @@ type Server struct { } func NewServer(address string, port int, uniqueIDGenerator *id.UniqueIDGenerator) *Server { - return &Server{address, port, uniqueIDGenerator} + return &Server{ + address: address, + port: port, + uniqueIDGenerator: uniqueIDGenerator, + } } func (s *Server) ListenAndServe() error {