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 TLSServer struct {
ctx context.Context
}
func NewTLSServer(ctx context.Context, handler *http.Handler) TLSServer {
return TLSServer{
func NewTLSServer(ctx context.Context, handler *http.Handler) *TLSServer {
return &TLSServer{
handler: handler,
ctx: ctx,
}