mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Revert "event: initialize maps with known size (#27233)"
This reverts commit 64222b6a45.
This commit is contained in:
parent
e0e04d2987
commit
7eb98a710d
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, len(types))
|
mux.subm = make(map[reflect.Type][]*TypeMuxSubscription)
|
||||||
}
|
}
|
||||||
for _, t := range types {
|
for _, t := range types {
|
||||||
rtyp := reflect.TypeOf(t)
|
rtyp := reflect.TypeOf(t)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue