Use time.Duration according to the time docs
Having a time.Duration measuring seconds is likely to cause problems at a later stage. This change retains configuration compatibility while adding idiomatic duration use.
This commit is contained in:
parent
2d884f92e9
commit
0fedecd392
4 changed files with 102 additions and 18 deletions
|
|
@ -17,6 +17,7 @@ package main
|
|||
import (
|
||||
"sync"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/google/cayley/config"
|
||||
"github.com/google/cayley/db"
|
||||
|
|
@ -294,7 +295,7 @@ var (
|
|||
cfg = &config.Config{
|
||||
DatabasePath: "30kmoviedata.nq.gz",
|
||||
DatabaseType: "memstore",
|
||||
GremlinTimeout: 300,
|
||||
GremlinTimeout: 300 * time.Second,
|
||||
}
|
||||
|
||||
ts graph.TripleStore
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue