refactor: clean up code

This commit is contained in:
fatedier
2026-05-12 11:09:19 +08:00
parent 8666e3643f
commit 3845587393
49 changed files with 2082 additions and 931 deletions
@@ -31,13 +31,6 @@ func New(options ...Option) *Server {
return s
}
func WithBindAddr(addr string) Option {
return func(s *Server) *Server {
s.bindAddr = addr
return s
}
}
func WithBindPort(port int) Option {
return func(s *Server) *Server {
s.bindPort = port