Skip to content

Commit

Permalink
Normalize the codebase (Issue #16)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxmlkzdh committed Sep 12, 2024
1 parent fe6200b commit 8cd0d73
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/tcp/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8cd0d73

Please sign in to comment.