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

Fix some lint warnings

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