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 QuicServer struct {
ctx context.Context
}
func NewQuicServer(ctx context.Context, tlsServer *TLSServer) QuicServer {
return QuicServer{
func NewQuicServer(ctx context.Context, tlsServer *TLSServer) *QuicServer {
return &QuicServer{
tlsServer: tlsServer,
ctx: ctx,
}