feat(server): add flag for skipping indexing in launching

This commit is contained in:
hexxa 2022-08-12 19:43:04 +08:00 committed by Hexxa
parent 0cce1bd090
commit aeb9d26bbd
4 changed files with 46 additions and 21 deletions

View file

@ -134,6 +134,7 @@ func TestLoadCfg(t *testing.T) {
MaxHeaderBytes: 1,
PublicPath: "1",
SearchResultLimit: 16,
InitFileIndex: true,
},
Workers: &WorkerPoolCfg{
QueueSize: 1,
@ -201,6 +202,7 @@ func TestLoadCfg(t *testing.T) {
MaxHeaderBytes: 4,
PublicPath: "4",
SearchResultLimit: 16,
InitFileIndex: true,
},
Workers: &WorkerPoolCfg{
QueueSize: 4,
@ -270,6 +272,7 @@ func TestLoadCfg(t *testing.T) {
MaxHeaderBytes: 4,
PublicPath: "4",
SearchResultLimit: 16,
InitFileIndex: true,
},
Workers: &WorkerPoolCfg{
QueueSize: 4,
@ -339,6 +342,7 @@ func TestLoadCfg(t *testing.T) {
MaxHeaderBytes: 4,
PublicPath: "4",
SearchResultLimit: 16,
InitFileIndex: true,
},
Workers: &WorkerPoolCfg{
QueueSize: 4,