mirror of
https://github.com/soheilhy/cmux.git
synced 2024-11-10 03:31:52 +08:00
Fix ugly variable name
This commit is contained in:
parent
e96bd75f84
commit
cfc68f9888
6
cmux.go
6
cmux.go
@ -115,10 +115,10 @@ type cMux struct {
|
||||
|
||||
func matchersToMatchWriters(matchers []Matcher) []MatchWriter {
|
||||
mws := make([]MatchWriter, 0, len(matchers))
|
||||
for _, _m := range matchers {
|
||||
m := _m
|
||||
for _, m := range matchers {
|
||||
cm := m
|
||||
mws = append(mws, func(w io.Writer, r io.Reader) bool {
|
||||
return m(r)
|
||||
return cm(r)
|
||||
})
|
||||
}
|
||||
return mws
|
||||
|
Loading…
Reference in New Issue
Block a user