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-blockservice
Commits
99499a8e
Commit
99499a8e
authored
Sep 14, 2015
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extract logging
License: MIT Signed-off-by:
Jeromy
<
jeromyj@gmail.com
>
parent
bfa72bb6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
blockservice.go
blockservice.go
+2
-2
worker/worker.go
worker/worker.go
+3
-2
No files found.
blockservice.go
View file @
99499a8e
...
...
@@ -12,7 +12,7 @@ import (
key
"github.com/ipfs/go-ipfs/blocks/key"
worker
"github.com/ipfs/go-ipfs/blockservice/worker"
exchange
"github.com/ipfs/go-ipfs/exchange"
u
"github.com/ipfs/go-ipfs/
util
"
logging
"github.com/ipfs/go-ipfs/
vendor/go-log-v1.0.0
"
)
var
wc
=
worker
.
Config
{
...
...
@@ -32,7 +32,7 @@ var wc = worker.Config{
WorkerBufferSize
:
0
,
}
var
log
=
u
.
Logger
(
"blockservice"
)
var
log
=
logging
.
Logger
(
"blockservice"
)
var
ErrNotFound
=
errors
.
New
(
"blockservice: key not found"
)
// BlockService is a hybrid block datastore. It stores data in a local
...
...
worker/worker.go
View file @
99499a8e
...
...
@@ -12,10 +12,11 @@ import (
blocks
"github.com/ipfs/go-ipfs/blocks"
key
"github.com/ipfs/go-ipfs/blocks/key"
exchange
"github.com/ipfs/go-ipfs/exchange"
util
"github.com/ipfs/go-ipfs/util"
logging
"github.com/ipfs/go-ipfs/vendor/go-log-v1.0.0"
)
var
log
=
util
.
Logger
(
"blockservice"
)
var
log
=
logging
.
Logger
(
"blockservice"
)
var
DefaultConfig
=
Config
{
NumWorkers
:
1
,
...
...
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