Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-datastore
Commits
92a2e45d
Commit
92a2e45d
authored
Jul 26, 2016
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix flatfs warning message
parent
b1538c10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
flatfs/flatfs.go
flatfs/flatfs.go
+2
-2
No files found.
flatfs/flatfs.go
View file @
92a2e45d
...
...
@@ -108,7 +108,7 @@ func (fs *Datastore) Put(key datastore.Key, value interface{}) error {
}
var
err
error
for
i
:=
0
;
i
<
putMaxRetries
;
i
++
{
for
i
:=
1
;
i
<
=
putMaxRetries
;
i
++
{
err
=
fs
.
doPut
(
key
,
val
)
if
err
==
nil
{
break
...
...
@@ -119,7 +119,7 @@ func (fs *Datastore) Put(key datastore.Key, value interface{}) error {
}
log
.
Errorf
(
"too many open files, retrying in %dms"
,
100
*
i
)
time
.
Sleep
(
time
.
Millisecond
*
100
*
time
.
Duration
(
i
+
1
))
time
.
Sleep
(
time
.
Millisecond
*
100
*
time
.
Duration
(
i
))
}
return
err
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment