Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
replds2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ai3
tools
replds2
Commits
223638d2
Commit
223638d2
authored
1 year ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Fix some lint warnings
parent
8ef366a9
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#53858
passed
1 year ago
Stage: test
Changes
3
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cmd/replds/store.go
+4
-6
4 additions, 6 deletions
cmd/replds/store.go
go.sum
+7
-47
7 additions, 47 deletions
go.sum
store/memlog/log_test.go
+2
-2
2 additions, 2 deletions
store/memlog/log_test.go
with
13 additions
and
55 deletions
cmd/replds/store.go
+
4
−
6
View file @
223638d2
...
...
@@ -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.
Click to expand it.
go.sum
+
7
−
47
View file @
223638d2
This diff is collapsed.
Click to expand it.
store/memlog/log_test.go
+
2
−
2
View file @
223638d2
...
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment