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
f22eea50
Unverified
Commit
f22eea50
authored
Sep 09, 2019
by
Whyrusleeping
Committed by
GitHub
Sep 09, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #30 from ipfs/feat/demote-warning
demote warning to debug log
parents
ccbef01d
1a0d1fd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
blockservice.go
blockservice.go
+2
-2
No files found.
blockservice.go
View file @
f22eea50
...
...
@@ -72,7 +72,7 @@ type blockService struct {
// NewBlockService creates a BlockService with given datastore instance.
func
New
(
bs
blockstore
.
Blockstore
,
rem
exchange
.
Interface
)
BlockService
{
if
rem
==
nil
{
log
.
Warnin
g
(
"blockservice running in local (offline) mode."
)
log
.
Debu
g
(
"blockservice running in local (offline) mode."
)
}
return
&
blockService
{
...
...
@@ -86,7 +86,7 @@ func New(bs blockstore.Blockstore, rem exchange.Interface) BlockService {
// through to the blockstore and are not skipped by cache checks.
func
NewWriteThrough
(
bs
blockstore
.
Blockstore
,
rem
exchange
.
Interface
)
BlockService
{
if
rem
==
nil
{
log
.
Warnin
g
(
"blockservice running in local (offline) mode."
)
log
.
Debu
g
(
"blockservice running in local (offline) mode."
)
}
return
&
blockService
{
...
...
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