mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-17 02:10:46 +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)
|
close(sub.postC)
|
||||||
} else {
|
} else {
|
||||||
if mux.subm == nil {
|
if mux.subm == nil {
|
||||||
mux.subm = make(map[reflect.Type][]*TypeMuxSubscription)
|
mux.subm = make(map[reflect.Type][]*TypeMuxSubscription, len(types))
|
||||||
}
|
}
|
||||||
for _, t := range types {
|
for _, t := range types {
|
||||||
rtyp := reflect.TypeOf(t)
|
rtyp := reflect.TypeOf(t)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue