mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 13:21:37 +00:00
Co-authored-by: ucwong <ucwong@126.com>
This commit is contained in:
parent
6c73723f47
commit
53b3431af5
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ func (mux *TypeMux) Subscribe(types ...interface{}) *TypeMuxSubscription {
|
|||
close(sub.postC)
|
||||
} else {
|
||||
if mux.subm == nil {
|
||||
mux.subm = make(map[reflect.Type][]*TypeMuxSubscription)
|
||||
mux.subm = make(map[reflect.Type][]*TypeMuxSubscription, len(types))
|
||||
}
|
||||
for _, t := range types {
|
||||
rtyp := reflect.TypeOf(t)
|
||||
|
|
|
|||
Loading…
Reference in a new issue