Revert "event: initialize maps with known size (#27233)"

This reverts commit 64222b6a45.
This commit is contained in:
devopsbo3 2023-11-10 12:27:53 -06:00 committed by GitHub
parent e0e04d2987
commit 7eb98a710d

View file

@ -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)