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
2f8f9452
Commit
2f8f9452
authored
Nov 19, 2017
by
Łukasz Magiera
Committed by
Steven Allen
Dec 02, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gx: Update go-datastore to 1.4.0
License: MIT Signed-off-by:
Łukasz Magiera
<
magik6k@gmail.com
>
parent
6593a208
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
13 deletions
+13
-13
arc_cache.go
arc_cache.go
+1
-1
arc_cache_test.go
arc_cache_test.go
+2
-2
blockstore.go
blockstore.go
+3
-3
blockstore_test.go
blockstore_test.go
+3
-3
bloom_cache_test.go
bloom_cache_test.go
+3
-3
util/remove.go
util/remove.go
+1
-1
No files found.
arc_cache.go
View file @
2f8f9452
...
...
@@ -7,8 +7,8 @@ import (
cid
"gx/ipfs/QmNp85zy9RLrQ5oQD4hPyS39ezrrXpcaa7R4Y9kxdWQLLQ/go-cid"
"gx/ipfs/QmRg1gKTHzc3CZXSKzem8aR4E3TubFhbgXwfVuWnSK5CC5/go-metrics-interface"
ds
"gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore"
lru
"gx/ipfs/QmVYxfoJQiZijTgPNHCHgHELvQpbsJNTg6Crmc3dQkj3yy/golang-lru"
ds
"gx/ipfs/QmdHG8MAuARdGHxx4rPQASLcvhz24fzjSQq7AJRAQEorq5/go-datastore"
)
// arccache wraps a BlockStore with an Adaptive Replacement Cache (ARC) for
...
...
arc_cache_test.go
View file @
2f8f9452
...
...
@@ -7,8 +7,8 @@ import (
"gx/ipfs/QmSn9Td7xgxm9EV7iEjTckpUWmWApggzPxu7eFGWkkpwin/go-block-format"
cid
"gx/ipfs/QmNp85zy9RLrQ5oQD4hPyS39ezrrXpcaa7R4Y9kxdWQLLQ/go-cid"
ds
"gx/ipfs/Qm
VSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG
/go-datastore"
syncds
"gx/ipfs/Qm
VSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG
/go-datastore/sync"
ds
"gx/ipfs/Qm
dHG8MAuARdGHxx4rPQASLcvhz24fzjSQq7AJRAQEorq5
/go-datastore"
syncds
"gx/ipfs/Qm
dHG8MAuARdGHxx4rPQASLcvhz24fzjSQq7AJRAQEorq5
/go-datastore/sync"
)
var
exampleBlock
=
blocks
.
NewBlock
([]
byte
(
"foo"
))
...
...
blockstore.go
View file @
2f8f9452
...
...
@@ -13,9 +13,9 @@ import (
cid
"gx/ipfs/QmNp85zy9RLrQ5oQD4hPyS39ezrrXpcaa7R4Y9kxdWQLLQ/go-cid"
logging
"gx/ipfs/QmSpJByNKFX1sCsHBEp3R73FL4NF6FnQTEGyNAXHm2GS52/go-log"
ds
"gx/ipfs/Qm
VSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG
/go-datastore"
dsns
"gx/ipfs/Qm
VSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG
/go-datastore/namespace"
dsq
"gx/ipfs/Qm
VSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG
/go-datastore/query"
ds
"gx/ipfs/Qm
dHG8MAuARdGHxx4rPQASLcvhz24fzjSQq7AJRAQEorq5
/go-datastore"
dsns
"gx/ipfs/Qm
dHG8MAuARdGHxx4rPQASLcvhz24fzjSQq7AJRAQEorq5
/go-datastore/namespace"
dsq
"gx/ipfs/Qm
dHG8MAuARdGHxx4rPQASLcvhz24fzjSQq7AJRAQEorq5
/go-datastore/query"
)
var
log
=
logging
.
Logger
(
"blockstore"
)
...
...
blockstore_test.go
View file @
2f8f9452
...
...
@@ -11,9 +11,9 @@ import (
cid
"gx/ipfs/QmNp85zy9RLrQ5oQD4hPyS39ezrrXpcaa7R4Y9kxdWQLLQ/go-cid"
u
"gx/ipfs/QmSU6eubNdhXjFBJBSksTp8kv8YRub8mGAPv8tVJHmL2EU/go-ipfs-util"
ds
"gx/ipfs/Qm
VSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG
/go-datastore"
dsq
"gx/ipfs/Qm
VSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG
/go-datastore/query"
ds_sync
"gx/ipfs/Qm
VSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG
/go-datastore/sync"
ds
"gx/ipfs/Qm
dHG8MAuARdGHxx4rPQASLcvhz24fzjSQq7AJRAQEorq5
/go-datastore"
dsq
"gx/ipfs/Qm
dHG8MAuARdGHxx4rPQASLcvhz24fzjSQq7AJRAQEorq5
/go-datastore/query"
ds_sync
"gx/ipfs/Qm
dHG8MAuARdGHxx4rPQASLcvhz24fzjSQq7AJRAQEorq5
/go-datastore/sync"
)
func
TestGetWhenKeyNotPresent
(
t
*
testing
.
T
)
{
...
...
bloom_cache_test.go
View file @
2f8f9452
...
...
@@ -9,9 +9,9 @@ import (
"gx/ipfs/QmSn9Td7xgxm9EV7iEjTckpUWmWApggzPxu7eFGWkkpwin/go-block-format"
context
"context"
ds
"gx/ipfs/Qm
VSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG
/go-datastore"
dsq
"gx/ipfs/Qm
VSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG
/go-datastore/query"
syncds
"gx/ipfs/Qm
VSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG
/go-datastore/sync"
ds
"gx/ipfs/Qm
dHG8MAuARdGHxx4rPQASLcvhz24fzjSQq7AJRAQEorq5
/go-datastore"
dsq
"gx/ipfs/Qm
dHG8MAuARdGHxx4rPQASLcvhz24fzjSQq7AJRAQEorq5
/go-datastore/query"
syncds
"gx/ipfs/Qm
dHG8MAuARdGHxx4rPQASLcvhz24fzjSQq7AJRAQEorq5
/go-datastore/sync"
)
func
testBloomCached
(
ctx
context
.
Context
,
bs
Blockstore
)
(
*
bloomcache
,
error
)
{
...
...
util/remove.go
View file @
2f8f9452
...
...
@@ -6,7 +6,7 @@ import (
"io"
cid
"gx/ipfs/QmNp85zy9RLrQ5oQD4hPyS39ezrrXpcaa7R4Y9kxdWQLLQ/go-cid"
ds
"gx/ipfs/Qm
VSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG
/go-datastore"
ds
"gx/ipfs/Qm
dHG8MAuARdGHxx4rPQASLcvhz24fzjSQq7AJRAQEorq5
/go-datastore"
bs
"github.com/ipfs/go-ipfs/blocks/blockstore"
"github.com/ipfs/go-ipfs/pin"
...
...
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