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-dms3-blockstore
Commits
6ebcf7aa
Commit
6ebcf7aa
authored
Aug 02, 2016
by
Jakub Sztandera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
blockstore: cleanup style a bit
License: MIT Signed-off-by:
Jakub Sztandera
<
kubuxu@protonmail.ch
>
parent
249be194
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
arc_cache.go
arc_cache.go
+6
-5
No files found.
arc_cache.go
View file @
6ebcf7aa
...
...
@@ -102,12 +102,13 @@ func (b *arccache) PutMany(bs []blocks.Block) error {
}
}
err
:=
b
.
blockstore
.
PutMany
(
bs
)
if
err
==
nil
{
for
_
,
block
:=
range
bs
{
b
.
arc
.
Add
(
block
.
Key
(),
true
)
}
if
err
!=
nil
{
return
err
}
return
err
for
_
,
block
:=
range
bs
{
b
.
arc
.
Add
(
block
.
Key
(),
true
)
}
return
nil
}
func
(
b
*
arccache
)
AllKeysChan
(
ctx
context
.
Context
)
(
<-
chan
key
.
Key
,
error
)
{
...
...
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