Skip to content

Commit 128036d

Browse files
committed
use strconv too
Signed-off-by: Andrew Thornton <[email protected]>
1 parent 54d8bff commit 128036d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

modules/setting/queue.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
package setting
66

77
import (
8-
"fmt"
98
"path/filepath"
109
"strconv"
1110
"time"
@@ -125,10 +124,10 @@ func NewQueueService() {
125124
}
126125
}
127126
if !directlySet["LENGTH"] && Indexer.UpdateQueueLength != 0 {
128-
_, _ = section.NewKey("LENGTH", fmt.Sprintf("%d", Indexer.UpdateQueueLength))
127+
_, _ = section.NewKey("LENGTH", strconv.Itoa(Indexer.UpdateQueueLength))
129128
}
130129
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))
132131
}
133132
if !directlySet["DATADIR"] && Indexer.IssueQueueDir != "" {
134133
_, _ = section.NewKey("DATADIR", Indexer.IssueQueueDir)

0 commit comments

Comments
 (0)