File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 5
5
package setting
6
6
7
7
import (
8
- "fmt"
9
8
"path/filepath"
10
9
"strconv"
11
10
"time"
@@ -125,10 +124,10 @@ func NewQueueService() {
125
124
}
126
125
}
127
126
if ! directlySet ["LENGTH" ] && Indexer .UpdateQueueLength != 0 {
128
- _ , _ = section .NewKey ("LENGTH" , fmt . Sprintf ( "%d" , Indexer .UpdateQueueLength ))
127
+ _ , _ = section .NewKey ("LENGTH" , strconv . Itoa ( Indexer .UpdateQueueLength ))
129
128
}
130
129
if ! directlySet ["BATCH_LENGTH" ] && Indexer .IssueQueueBatchNumber != 0 {
131
- _ , _ = section .NewKey ("BATCH_LENGTH" , fmt . Sprintf ( "%d" , Indexer .IssueQueueBatchNumber ))
130
+ _ , _ = section .NewKey ("BATCH_LENGTH" , strconv . Itoa ( Indexer .IssueQueueBatchNumber ))
132
131
}
133
132
if ! directlySet ["DATADIR" ] && Indexer .IssueQueueDir != "" {
134
133
_ , _ = section .NewKey ("DATADIR" , Indexer .IssueQueueDir )
You can’t perform that action at this time.
0 commit comments