@@ -62,20 +62,20 @@ func initializeSDK(configDir, allocid string, nonce int64) error {
62
62
if err != nil {
63
63
return err
64
64
}
65
- encrypt = serverConfig . Encrypt
66
- compress = serverConfig .Compress
67
- if serverConfig . MaxBatchSize == 0 {
68
- serverConfig .MaxBatchSize = 25
69
- serverConfig .BatchWorkers = 5
70
- serverConfig .BatchWaitTime = 500
71
- } else if serverConfig .BatchWorkers == 0 {
72
- serverConfig .BatchWorkers = 5
73
- } else if serverConfig .BatchWaitTime == 0 {
74
- serverConfig .BatchWaitTime = 500
75
- }
76
- if serverConfig . MaxConcurrentRequests == 0 {
77
- serverConfig .MaxConcurrentRequests = serverConfig . MaxBatchSize
78
- }
65
+ }
66
+ encrypt = serverConfig .Encrypt
67
+ compress = serverConfig . Compress
68
+ if serverConfig .MaxBatchSize == 0 {
69
+ serverConfig .MaxBatchSize = 25
70
+ serverConfig .BatchWorkers = 5
71
+ serverConfig .BatchWaitTime = 500
72
+ } else if serverConfig .BatchWorkers == 0 {
73
+ serverConfig .BatchWorkers = 5
74
+ } else if serverConfig .BatchWaitTime == 0 {
75
+ serverConfig . BatchWaitTime = 500
76
+ }
77
+ if serverConfig .MaxConcurrentRequests == 0 {
78
+ serverConfig . MaxConcurrentRequests = serverConfig . MaxBatchSize
79
79
}
80
80
81
81
cfg , err := conf .LoadConfigFile (filepath .Join (configDir , "config.yaml" ))
0 commit comments