Commit 9e4240a0 authored by vicotor's avatar vicotor

set routine count

parent b868e423
...@@ -39,6 +39,7 @@ func NewCacheData(ctx context.Context, options RedisConnParam, mysqlConfig model ...@@ -39,6 +39,7 @@ func NewCacheData(ctx context.Context, options RedisConnParam, mysqlConfig model
cache := &CacheData{ cache := &CacheData{
rdb: rdb, rdb: rdb,
pathLru: pathLru, pathLru: pathLru,
maxRoutine: 10,
taskChan: make(chan QueryParam, 10000), taskChan: make(chan QueryParam, 10000),
taskType: model.NewTaskTypeRepository(), taskType: model.NewTaskTypeRepository(),
userRepo: model.NewUserRepository(), userRepo: model.NewUserRepository(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment