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
75a6740a
Commit
75a6740a
authored
Aug 21, 2021
by
tavit ohanian
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'port-2021-04-29'
parents
6257699d
81c8c5a9
Pipeline
#983
passed with stages
in 40 seconds
Changes
11
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
65 additions
and
61 deletions
+65
-61
arc_cache.go
arc_cache.go
+3
-3
arc_cache_test.go
arc_cache_test.go
+4
-4
blockstore.go
blockstore.go
+7
-7
blockstore_test.go
blockstore_test.go
+7
-7
bloom_cache.go
bloom_cache.go
+4
-4
bloom_cache_test.go
bloom_cache_test.go
+4
-4
caching.go
caching.go
+1
-1
go.mod
go.mod
+9
-9
go.sum
go.sum
+21
-17
idstore.go
idstore.go
+2
-2
idstore_test.go
idstore_test.go
+3
-3
No files found.
arc_cache.go
View file @
75a6740a
...
@@ -4,9 +4,9 @@ import (
...
@@ -4,9 +4,9 @@ import (
"context"
"context"
lru
"github.com/hashicorp/golang-lru"
lru
"github.com/hashicorp/golang-lru"
blocks
"gitlab.dms3.io/dms3/
public/
go-block-format"
blocks
"gitlab.dms3.io/dms3/go-block-format"
cid
"gitlab.dms3.io/dms3/
public/
go-cid"
cid
"gitlab.dms3.io/dms3/go-cid"
metrics
"gitlab.dms3.io/dms3/
public/
go-metrics-interface"
metrics
"gitlab.dms3.io/dms3/go-metrics-interface"
)
)
type
cacheHave
bool
type
cacheHave
bool
...
...
arc_cache_test.go
View file @
75a6740a
...
@@ -4,10 +4,10 @@ import (
...
@@ -4,10 +4,10 @@ import (
"context"
"context"
"testing"
"testing"
blocks
"gitlab.dms3.io/dms3/
public/
go-block-format"
blocks
"gitlab.dms3.io/dms3/go-block-format"
cid
"gitlab.dms3.io/dms3/
public/
go-cid"
cid
"gitlab.dms3.io/dms3/go-cid"
ds
"gitlab.dms3.io/dms3/
public/
go-datastore"
ds
"gitlab.dms3.io/dms3/go-datastore"
syncds
"gitlab.dms3.io/dms3/
public/
go-datastore/sync"
syncds
"gitlab.dms3.io/dms3/go-datastore/sync"
)
)
var
exampleBlock
=
blocks
.
NewBlock
([]
byte
(
"foo"
))
var
exampleBlock
=
blocks
.
NewBlock
([]
byte
(
"foo"
))
...
...
blockstore.go
View file @
75a6740a
...
@@ -8,13 +8,13 @@ import (
...
@@ -8,13 +8,13 @@ import (
"sync"
"sync"
"sync/atomic"
"sync/atomic"
blocks
"gitlab.dms3.io/dms3/
public/
go-block-format"
blocks
"gitlab.dms3.io/dms3/go-block-format"
cid
"gitlab.dms3.io/dms3/
public/
go-cid"
cid
"gitlab.dms3.io/dms3/go-cid"
ds
"gitlab.dms3.io/dms3/
public/
go-datastore"
ds
"gitlab.dms3.io/dms3/go-datastore"
dsns
"gitlab.dms3.io/dms3/
public/
go-datastore/namespace"
dsns
"gitlab.dms3.io/dms3/go-datastore/namespace"
dsq
"gitlab.dms3.io/dms3/
public/
go-datastore/query"
dsq
"gitlab.dms3.io/dms3/go-datastore/query"
dshelp
"gitlab.dms3.io/dms3/
public/
go-dms3-ds-help"
dshelp
"gitlab.dms3.io/dms3/go-dms3-ds-help"
logging
"gitlab.dms3.io/dms3/
public/
go-log"
logging
"gitlab.dms3.io/dms3/go-log"
uatomic
"go.uber.org/atomic"
uatomic
"go.uber.org/atomic"
)
)
...
...
blockstore_test.go
View file @
75a6740a
...
@@ -6,12 +6,12 @@ import (
...
@@ -6,12 +6,12 @@ import (
"fmt"
"fmt"
"testing"
"testing"
blocks
"gitlab.dms3.io/dms3/
public/
go-block-format"
blocks
"gitlab.dms3.io/dms3/go-block-format"
cid
"gitlab.dms3.io/dms3/
public/
go-cid"
cid
"gitlab.dms3.io/dms3/go-cid"
ds
"gitlab.dms3.io/dms3/
public/
go-datastore"
ds
"gitlab.dms3.io/dms3/go-datastore"
dsq
"gitlab.dms3.io/dms3/
public/
go-datastore/query"
dsq
"gitlab.dms3.io/dms3/go-datastore/query"
ds_sync
"gitlab.dms3.io/dms3/
public/
go-datastore/sync"
ds_sync
"gitlab.dms3.io/dms3/go-datastore/sync"
u
"gitlab.dms3.io/dms3/
public/
go-dms3-util"
u
"gitlab.dms3.io/dms3/go-dms3-util"
)
)
func
TestGetWhenKeyNotPresent
(
t
*
testing
.
T
)
{
func
TestGetWhenKeyNotPresent
(
t
*
testing
.
T
)
{
...
@@ -118,7 +118,7 @@ func TestPutUsesHas(t *testing.T) {
...
@@ -118,7 +118,7 @@ func TestPutUsesHas(t *testing.T) {
// Some datastores rely on the implementation detail that Put checks Has
// Some datastores rely on the implementation detail that Put checks Has
// first, to avoid overriding existing objects' metadata. This test ensures
// first, to avoid overriding existing objects' metadata. This test ensures
// that Blockstore continues to behave this way.
// that Blockstore continues to behave this way.
// Please ping https://gitlab.dms3.io/dms3/
public/
go-dms3-blockstore/pull/47 if this
// Please ping https://gitlab.dms3.io/dms3/go-dms3-blockstore/pull/47 if this
// behavior is being removed.
// behavior is being removed.
ds
:=
&
countHasDS
{
ds
:=
&
countHasDS
{
Datastore
:
ds
.
NewMapDatastore
(),
Datastore
:
ds
.
NewMapDatastore
(),
...
...
bloom_cache.go
View file @
75a6740a
...
@@ -6,10 +6,10 @@ import (
...
@@ -6,10 +6,10 @@ import (
"sync/atomic"
"sync/atomic"
"time"
"time"
bloom
"gitlab.dms3.io/dms3/
public/
bbloom"
bloom
"gitlab.dms3.io/dms3/bbloom"
blocks
"gitlab.dms3.io/dms3/
public/
go-block-format"
blocks
"gitlab.dms3.io/dms3/go-block-format"
cid
"gitlab.dms3.io/dms3/
public/
go-cid"
cid
"gitlab.dms3.io/dms3/go-cid"
metrics
"gitlab.dms3.io/dms3/
public/
go-metrics-interface"
metrics
"gitlab.dms3.io/dms3/go-metrics-interface"
)
)
// bloomCached returns a Blockstore that caches Has requests using a Bloom
// bloomCached returns a Blockstore that caches Has requests using a Bloom
...
...
bloom_cache_test.go
View file @
75a6740a
...
@@ -7,10 +7,10 @@ import (
...
@@ -7,10 +7,10 @@ import (
"testing"
"testing"
"time"
"time"
blocks
"gitlab.dms3.io/dms3/
public/
go-block-format"
blocks
"gitlab.dms3.io/dms3/go-block-format"
ds
"gitlab.dms3.io/dms3/
public/
go-datastore"
ds
"gitlab.dms3.io/dms3/go-datastore"
dsq
"gitlab.dms3.io/dms3/
public/
go-datastore/query"
dsq
"gitlab.dms3.io/dms3/go-datastore/query"
syncds
"gitlab.dms3.io/dms3/
public/
go-datastore/sync"
syncds
"gitlab.dms3.io/dms3/go-datastore/sync"
)
)
func
testBloomCached
(
ctx
context
.
Context
,
bs
Blockstore
)
(
*
bloomcache
,
error
)
{
func
testBloomCached
(
ctx
context
.
Context
,
bs
Blockstore
)
(
*
bloomcache
,
error
)
{
...
...
caching.go
View file @
75a6740a
...
@@ -4,7 +4,7 @@ import (
...
@@ -4,7 +4,7 @@ import (
"context"
"context"
"errors"
"errors"
metrics
"gitlab.dms3.io/dms3/
public/
go-metrics-interface"
metrics
"gitlab.dms3.io/dms3/go-metrics-interface"
)
)
// CacheOpts wraps options for CachedBlockStore().
// CacheOpts wraps options for CachedBlockStore().
...
...
go.mod
View file @
75a6740a
module
gitlab.dms3.io/dms3/
public/
go-dms3-blockstore
module
gitlab.dms3.io/dms3/go-dms3-blockstore
require (
require (
github.com/hashicorp/golang-lru
v0.5.4
github.com/hashicorp/golang-lru
v0.5.4
github.com/multiformats/go-multihash
v0.0.14
github.com/multiformats/go-multihash
v0.0.14
gitlab.dms3.io/dms3/
public/
bbloom
v0.0.
1
gitlab.dms3.io/dms3/bbloom
v0.0.
2
gitlab.dms3.io/dms3/
public/
go-block-format
v0.0.
1
gitlab.dms3.io/dms3/go-block-format
v0.0.
3
gitlab.dms3.io/dms3/
public/
go-cid
v0.0.
1
gitlab.dms3.io/dms3/go-cid
v0.0.
3
gitlab.dms3.io/dms3/
public/
go-datastore
v0.0.
1
gitlab.dms3.io/dms3/go-datastore
v0.0.
2
gitlab.dms3.io/dms3/
public/
go-dms3-ds-help
v0.0.
2
gitlab.dms3.io/dms3/go-dms3-ds-help
v0.0.
3
gitlab.dms3.io/dms3/
public/
go-dms3-util
v0.0.
1
gitlab.dms3.io/dms3/go-dms3-util
v0.0.
2
gitlab.dms3.io/dms3/
public/
go-log
v0.0.
1
gitlab.dms3.io/dms3/go-log
v0.0.
2
gitlab.dms3.io/dms3/
public/
go-metrics-interface
v0.0.
1
gitlab.dms3.io/dms3/go-metrics-interface
v0.0.
2
go.uber.org/atomic
v1.7.0
go.uber.org/atomic
v1.7.0
)
)
...
...
go.sum
View file @
75a6740a
...
@@ -54,23 +54,23 @@ github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0
...
@@ -54,23 +54,23 @@ github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0
github.com/stretchr/testify
v1.3.0/go.mod h1:
M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify
v1.3.0/go.mod h1:
M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify
v1.4.0 h1:
2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
github.com/stretchr/testify
v1.4.0 h1:
2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
github.com/stretchr/testify
v1.4.0/go.mod h1:
j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/stretchr/testify
v1.4.0/go.mod h1:
j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
gitlab.dms3.io/dms3/
public/
bbloom
v0.0.
1
h1:
kgk1gfIoUl7cuxlYZ0/Mv8k01xikBH33fb2peWIQJic
=
gitlab.dms3.io/dms3/bbloom
v0.0.
2
h1:
QUy22f3j+xsQm4osUxvE5xoJ2N9gW7qU59RQx9CKcyY
=
gitlab.dms3.io/dms3/
public/
bbloom
v0.0.
1
/go.mod h1:
n76ooRIrdCEsVmkoqml73ZuX1kVWNstRTPpoz4YyMzQ
=
gitlab.dms3.io/dms3/bbloom
v0.0.
2
/go.mod h1:
LcQmLQuryIw3kDzD+bcbojAojWtYni30BeSJ9wuw8qg
=
gitlab.dms3.io/dms3/
public/
go-block-format
v0.0.
1
h1:
PQ6+E7zY6kUIHET86uJTQHTTj4Z9ZNfP7w281ZdExgk
=
gitlab.dms3.io/dms3/go-block-format
v0.0.
3
h1:
3gPZUNu5UavbZxbMNd4NDTLG53O7MbmYSwntQwZGKxI
=
gitlab.dms3.io/dms3/
public/
go-block-format
v0.0.
1
/go.mod h1:
xlvtW/OF72rOzLa2RVWXX2Uw18qTAWTQEs/Xp7SCnuY
=
gitlab.dms3.io/dms3/go-block-format
v0.0.
3
/go.mod h1:
IbZAFf3fFJa8YW98gaSg/iO9GKtsgVs6+N8OVHmFw1I
=
gitlab.dms3.io/dms3/
public/
go-cid
v0.0.
1
h1:
qs4dtkDigcLGY/58dIZaFjKLt+orrTcmTBvtqaM3570
=
gitlab.dms3.io/dms3/go-cid
v0.0.
3
h1:
5qZ1sl1Bi26naLz7Vsc8fjWcJKX8bR6njt3WPCteXac
=
gitlab.dms3.io/dms3/
public/
go-cid
v0.0.
1
/go.mod h1:
GQw3gc4CSrFY+aX6M+OBQDlg0p5/eQJoRrayaZzkAOQ
=
gitlab.dms3.io/dms3/go-cid
v0.0.
3
/go.mod h1:
qT/Q1NZD31UnWQ+rwsQgzGrrsQhpq7dYSlXf7ulDgtk
=
gitlab.dms3.io/dms3/
public/
go-datastore
v0.0.
1
h1:
RjZLvnqlvWDpb5ZwvkVEWGONF7zKNPe4Q0DND5oxZec
=
gitlab.dms3.io/dms3/go-datastore
v0.0.
2
h1:
cLsmDEiDz+onFnbPhyLYuPECw+tJEnvpil958ps0WHw
=
gitlab.dms3.io/dms3/
public/
go-datastore
v0.0.
1
/go.mod h1:
qSI0hpmVMo6HCp0uveHTKyQ87j1aVe2hqiTeiPCehYA
=
gitlab.dms3.io/dms3/go-datastore
v0.0.
2
/go.mod h1:
IOybd0feVxRiGt5idG/FzjdeK6itS0uaMgD42CmANFo
=
gitlab.dms3.io/dms3/
public/
go-dms3-delay
v0.0.
1
/go.mod h1:
Mg+buHOoh8UruN+MMqeqBUPBKMRTmpsXAyxv5ZSt+X4
=
gitlab.dms3.io/dms3/go-dms3-delay
v0.0.
2
/go.mod h1:
WPBu+WALc2GAYE3KfI5QM+r3dX9gv7wHJVfTFlYBwDg
=
gitlab.dms3.io/dms3/
public/
go-dms3-ds-help
v0.0.
2
h1:
SYgjiHzcpFBgabZhLVdfC4LPKjcQ/Lc8xgh3c3JsoFs
=
gitlab.dms3.io/dms3/go-dms3-ds-help
v0.0.
3
h1:
uSvksVjFcrItUWet55Lokpe5hez+zp4UE6aXeAZp73A
=
gitlab.dms3.io/dms3/
public/
go-dms3-ds-help
v0.0.
2
/go.mod h1:
szc3LU0qkzM55gKHJuGx2TU6tIn/4sRJt/ThZzffi9A
=
gitlab.dms3.io/dms3/go-dms3-ds-help
v0.0.
3
/go.mod h1:
mobOVtN8rkzaq3ZY/JSnaZxSL0A2N6gQlyGuAk9e6ug
=
gitlab.dms3.io/dms3/
public/
go-dms3-util
v0.0.
1
h1:
Gd+kJl1Rc+ZEUb9CIS1ZctQnF9G1oruNFyxUC//QBUQ
=
gitlab.dms3.io/dms3/go-dms3-util
v0.0.
2
h1:
xXHeLaht5szd3QPdQp5KcfmXbIyRvRPSdQnMkJPRgPo
=
gitlab.dms3.io/dms3/
public/
go-dms3-util
v0.0.
1
/go.mod h1:
ymlwtzTNMq8Ug+gVtPAMxXKCKTXwXJAzXS+SUihfKgo
=
gitlab.dms3.io/dms3/go-dms3-util
v0.0.
2
/go.mod h1:
5hPwxzo5zK4NeHE/anWIQGHcIoG7aTl9/Pp0j2zg0l8
=
gitlab.dms3.io/dms3/
public/
go-log
v0.0.
1
h1:
jqz2g8pVdPW+Sy8CCo4rYfGEjktGhCBfgIb3oeY6yx8
=
gitlab.dms3.io/dms3/go-log
v0.0.
2
h1:
vuNG5qmx6P9iK+A1+k4AmC6Q+ORm2ekWaQVbMmeL2wc
=
gitlab.dms3.io/dms3/
public/
go-log
v0.0.
1
/go.mod h1:
OsyF7lVYe47r03v1ZCbrmz0byeGUWB0Y219jN1DJx3s
=
gitlab.dms3.io/dms3/go-log
v0.0.
2
/go.mod h1:
iLuW2zqJJaP1WdbME4P6AS9AIMovwGDAn3zV/riR5iE
=
gitlab.dms3.io/dms3/
public/
go-metrics-interface
v0.0.
1
h1:
oLJzd5zSjf5C1aEMHziNbV4RbJVuPaNzzKW4VBzKnQ
M=
gitlab.dms3.io/dms3/go-metrics-interface
v0.0.
2
h1:
ne/5rq39etdUVBeSl80e/BM6U8dLSzB/nMvSoZ6woX
M=
gitlab.dms3.io/dms3/
public/
go-metrics-interface
v0.0.
1
/go.mod h1:
Ag1ayfnHxy0H659akn+bjAGn9k/HJrpxsVrB90DmRL8
=
gitlab.dms3.io/dms3/go-metrics-interface
v0.0.
2
/go.mod h1:
7A1hwAuYHn/sPzRzK2bF/yJwwyH85pqC9q09ezOCzgE
=
go.uber.org/atomic
v1.6.0 h1:
Ezj3JGmsOnG1MoRWQkPBsKLe9DwWD9QeXzTRzzldNVk=
go.uber.org/atomic
v1.6.0 h1:
Ezj3JGmsOnG1MoRWQkPBsKLe9DwWD9QeXzTRzzldNVk=
go.uber.org/atomic
v1.6.0/go.mod h1:
sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
go.uber.org/atomic
v1.6.0/go.mod h1:
sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
go.uber.org/atomic
v1.7.0 h1:
ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw=
go.uber.org/atomic
v1.7.0 h1:
ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw=
...
@@ -85,6 +85,8 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk
...
@@ -85,6 +85,8 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk
golang.org/x/crypto
v0.0.0-20190510104115-cbcb75029529/go.mod h1:
yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto
v0.0.0-20190510104115-cbcb75029529/go.mod h1:
yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto
v0.0.0-20190611184440-5c40567a22f8 h1:
1wopBVtVdWnn03fZelqdXTqk7U7zPQCb+T4rbU9ZEoU=
golang.org/x/crypto
v0.0.0-20190611184440-5c40567a22f8 h1:
1wopBVtVdWnn03fZelqdXTqk7U7zPQCb+T4rbU9ZEoU=
golang.org/x/crypto
v0.0.0-20190611184440-5c40567a22f8/go.mod h1:
yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto
v0.0.0-20190611184440-5c40567a22f8/go.mod h1:
yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto
v0.0.0-20200622213623-75b288015ac9 h1:
psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI=
golang.org/x/crypto
v0.0.0-20200622213623-75b288015ac9/go.mod h1:
LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/lint
v0.0.0-20190930215403-16217165b5de h1:
5hukYrvBGR8/eNkX5mdUezrA6JiaEZDtJb9Ei+1LlBs=
golang.org/x/lint
v0.0.0-20190930215403-16217165b5de h1:
5hukYrvBGR8/eNkX5mdUezrA6JiaEZDtJb9Ei+1LlBs=
golang.org/x/lint
v0.0.0-20190930215403-16217165b5de/go.mod h1:
6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
golang.org/x/lint
v0.0.0-20190930215403-16217165b5de/go.mod h1:
6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
golang.org/x/mod
v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:
mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=
golang.org/x/mod
v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:
mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=
...
@@ -97,6 +99,8 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ
...
@@ -97,6 +99,8 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ
golang.org/x/sys
v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:
STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys
v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:
STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys
v0.0.0-20190412213103-97732733099d h1:
+R4KGOnez64A81RvjARKc4UT5/tI9ujCIVX+P5KiHuI=
golang.org/x/sys
v0.0.0-20190412213103-97732733099d h1:
+R4KGOnez64A81RvjARKc4UT5/tI9ujCIVX+P5KiHuI=
golang.org/x/sys
v0.0.0-20190412213103-97732733099d/go.mod h1:
h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys
v0.0.0-20190412213103-97732733099d/go.mod h1:
h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys
v0.0.0-20210608053332-aa57babbf139 h1:
C+AwYEtBp/VQwoLntUmQ/yx3MS9vmZaKNdw5eOpoQe8=
golang.org/x/sys
v0.0.0-20210608053332-aa57babbf139/go.mod h1:
oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/text
v0.3.0/go.mod h1:
NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text
v0.3.0/go.mod h1:
NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/tools
v0.0.0-20190311212946-11955173bddd/go.mod h1:
LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
golang.org/x/tools
v0.0.0-20190311212946-11955173bddd/go.mod h1:
LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
golang.org/x/tools
v0.0.0-20190621195816-6e04913cbbac/go.mod h1:
/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
golang.org/x/tools
v0.0.0-20190621195816-6e04913cbbac/go.mod h1:
/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
...
...
idstore.go
View file @
75a6740a
...
@@ -5,8 +5,8 @@ import (
...
@@ -5,8 +5,8 @@ import (
"io"
"io"
mh
"github.com/multiformats/go-multihash"
mh
"github.com/multiformats/go-multihash"
blocks
"gitlab.dms3.io/dms3/
public/
go-block-format"
blocks
"gitlab.dms3.io/dms3/go-block-format"
cid
"gitlab.dms3.io/dms3/
public/
go-cid"
cid
"gitlab.dms3.io/dms3/go-cid"
)
)
// idstore wraps a BlockStore to add support for identity hashes
// idstore wraps a BlockStore to add support for identity hashes
...
...
idstore_test.go
View file @
75a6740a
...
@@ -5,9 +5,9 @@ import (
...
@@ -5,9 +5,9 @@ import (
"testing"
"testing"
mh
"github.com/multiformats/go-multihash"
mh
"github.com/multiformats/go-multihash"
blk
"gitlab.dms3.io/dms3/
public/
go-block-format"
blk
"gitlab.dms3.io/dms3/go-block-format"
cid
"gitlab.dms3.io/dms3/
public/
go-cid"
cid
"gitlab.dms3.io/dms3/go-cid"
ds
"gitlab.dms3.io/dms3/
public/
go-datastore"
ds
"gitlab.dms3.io/dms3/go-datastore"
)
)
func
createTestStores
()
(
Blockstore
,
*
callbackDatastore
)
{
func
createTestStores
()
(
Blockstore
,
*
callbackDatastore
)
{
...
...
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