We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54d8bff commit 128036dCopy full SHA for 128036d
modules/setting/queue.go
@@ -5,7 +5,6 @@
5
package setting
6
7
import (
8
- "fmt"
9
"path/filepath"
10
"strconv"
11
"time"
@@ -125,10 +124,10 @@ func NewQueueService() {
125
124
}
126
127
if !directlySet["LENGTH"] && Indexer.UpdateQueueLength != 0 {
128
- _, _ = section.NewKey("LENGTH", fmt.Sprintf("%d", Indexer.UpdateQueueLength))
+ _, _ = section.NewKey("LENGTH", strconv.Itoa(Indexer.UpdateQueueLength))
129
130
if !directlySet["BATCH_LENGTH"] && Indexer.IssueQueueBatchNumber != 0 {
131
- _, _ = section.NewKey("BATCH_LENGTH", fmt.Sprintf("%d", Indexer.IssueQueueBatchNumber))
+ _, _ = section.NewKey("BATCH_LENGTH", strconv.Itoa(Indexer.IssueQueueBatchNumber))
132
133
if !directlySet["DATADIR"] && Indexer.IssueQueueDir != "" {
134
_, _ = section.NewKey("DATADIR", Indexer.IssueQueueDir)
0 commit comments