Skip to content
Snippets Groups Projects
Commit 223638d2 authored by ale's avatar ale
Browse files

Fix some lint warnings

parent 8ef366a9
Branches
No related tags found
No related merge requests found
Pipeline #53858 passed
......@@ -19,12 +19,10 @@ import (
)
type storeCommand struct {
sslCert string
sslKey string
sslCA string
storePath string
triggersPath string
serverAddr string
sslCert string
sslKey string
sslCA string
serverAddr string
}
func init() {
......
This diff is collapsed.
......@@ -52,7 +52,7 @@ func TestLog(t *testing.T) {
for i := 0; i < numEntries; i++ {
node := &pb.Node{
Path: fmt.Sprintf("/path/to/%08d", (i % maxSz)),
Version: int64(time.Now().Unix()),
Version: time.Now().Unix(),
Data: []byte("just some random data, blah blah, blah blah!"),
}
if err := l.Write(node); err != nil {
......@@ -95,7 +95,7 @@ func TestLog(t *testing.T) {
log.Printf(">>> writing new data, closing and re-opening log...")
err = l.Write(&pb.Node{
Path: testPath,
Version: int64(time.Now().Unix()),
Version: time.Now().Unix(),
Data: []byte("new data"),
})
if err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment