Skip to content

Commit c5f1f1d

Browse files
authored
Optimize the initial cap of tcGenFunMap in core/flow/rule_manager.go (#476)
1 parent 2992e5c commit c5f1f1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/flow/rule_manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ type trafficControllerGenKey struct {
4141
type TrafficControllerMap map[string][]*TrafficShapingController
4242

4343
var (
44-
tcGenFuncMap = make(map[trafficControllerGenKey]TrafficControllerGenFunc, 4)
44+
tcGenFuncMap = make(map[trafficControllerGenKey]TrafficControllerGenFunc, 6)
4545
tcMap = make(TrafficControllerMap)
4646
tcMux = new(sync.RWMutex)
4747
nopStat = &standaloneStatistic{

0 commit comments

Comments
 (0)