File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -131,9 +131,10 @@ type Fds struct {
131
131
l log15.Logger
132
132
}
133
133
134
- func (f * Fds ) String () string {
135
- res := make ([]string , 0 , len (f .fds ))
136
- for _ , fi := range f .fds {
134
+ func (f * Fds ) String () string { // XXX here?
135
+ fds := f .copy ()
136
+ res := make ([]string , 0 , len (fds ))
137
+ for _ , fi := range fds {
137
138
res = append (res , fi .String ())
138
139
}
139
140
return fmt .Sprintf ("fds: %v" , res )
Original file line number Diff line number Diff line change @@ -240,9 +240,9 @@ func (u *Upgrader) Ready() error {
240
240
}
241
241
242
242
// Now cleanup all old FDs while holding the lock
243
- u .Fds .lockMutations (errors .New ("closing old listeners" ))
244
- defer u .Fds .unlockMutations ()
245
- _ = u .Fds .closeUnused ()
243
+ // u.Fds.lockMutations(errors.New("closing old listeners"))
244
+ // defer u.Fds.unlockMutations()
245
+ // _ = u.Fds.closeUnused()
246
246
247
247
return nil
248
248
}
You can’t perform that action at this time.
0 commit comments