Skip to content

Commit 320d9ad

Browse files
authored
wakey wakey
1 parent 48babd8 commit 320d9ad

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

transports.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,21 +100,21 @@ type (
100100
}
101101

102102
CustomManagerFuncs struct {
103-
Run func() error
104-
Shutdown func() error
103+
RunFunc func() error
104+
ShutdownFunc func() error
105105
}
106106
)
107107

108108
func (f *CustomManagerFuncs) Run() error {
109-
return f.Run()
109+
return f.RunFunc()
110110
}
111111

112112
func (f *CustomManagerFuncs) Shutdown() error {
113-
if f.Shutdown == nil {
113+
if f.ShutdownFunc == nil {
114114
return nil
115115
}
116116

117-
return f.Shutdown()
117+
return f.ShutdownFunc()
118118
}
119119

120120
func (t *customMananger) Start() <-chan error {
@@ -138,7 +138,7 @@ func WithCustom(impl customManangerImpl) Option {
138138
}
139139

140140
return func(o *serverOptions) error {
141-
o.transports = append(o.transports, &customTransportMananger{
141+
o.transports = append(o.transports, &customMananger{
142142
impl: impl,
143143
})
144144
return nil

0 commit comments

Comments
 (0)