fix quic config

This commit is contained in:
ginuerzh
2022-11-03 21:30:01 +08:00
parent 76fbcb2046
commit 30d44c7376
31 changed files with 218 additions and 138 deletions

View File

@ -8,7 +8,7 @@ import (
type NewConnector func(opts ...connector.Option) connector.Connector
type connectorRegistry struct {
registry
registry[NewConnector]
}
func (r *connectorRegistry) Register(name string, v NewConnector) error {
@ -17,10 +17,3 @@ func (r *connectorRegistry) Register(name string, v NewConnector) error {
}
return nil
}
func (r *connectorRegistry) Get(name string) NewConnector {
if v := r.registry.Get(name); v != nil {
return v.(NewConnector)
}
return nil
}