Silence a few golint warnings.

This commit is contained in:
Sascha L. Teichmann 2015-05-27 16:57:08 +02:00
parent f80d9e452c
commit 9d1b0cc7c6
2 changed files with 6 additions and 6 deletions

View File

@ -38,7 +38,7 @@ func main() {
cacheSize int
version bool
interleaved bool
changeUrl string
changeURL string
gcDuration string
changeDuration string
maxBulkStringSize int64
@ -57,7 +57,7 @@ func main() {
"gc-duration", GCDuration, "Duration between forced GCs.")
flag.StringVar(&changeDuration,
"change-duration", ChangeDuration, "Duration to aggregate changes.")
flag.StringVar(&changeUrl, "change-url", "", "URL to send changes to.")
flag.StringVar(&changeURL, "change-url", "", "URL to send changes to.")
flag.Int64Var(&maxBulkStringSize, "max-bulk-string-size", defaultMaxBulkStringSize,
"max size of a bulk string to be accepted as input (in bytes).")
flag.Parse()
@ -87,7 +87,7 @@ func main() {
var changeChan <-chan time.Time
useChangeNotification := changeUrl != ""
useChangeNotification := changeURL != ""
if useChangeNotification {
if chDur, err = time.ParseDuration(changeDuration); err != nil {
@ -162,7 +162,7 @@ func main() {
log.Println("Garbage collection done.")
case <-changeChan:
if changeTracker != nil {
changeTracker.FlushChanges(changeUrl)
changeTracker.FlushChanges(changeURL)
}
}
}

View File

@ -46,8 +46,8 @@ type SqliteSession struct {
tx *sql.Tx
}
func (ss *SqliteBackend) NewSession() (Session, error) {
return &SqliteSession{ss, nil}, nil
func (sqlb *SqliteBackend) NewSession() (Session, error) {
return &SqliteSession{sqlb, nil}, nil
}
func (ss *SqliteSession) Close() error {