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
Commits
91808e18
Commit
91808e18
authored
Jan 10, 2015
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: use core.ConfigOption return type
parent
7cebb33e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
test/epictest/core.go
test/epictest/core.go
+1
-4
No files found.
test/epictest/core.go
View file @
91808e18
...
...
@@ -22,9 +22,7 @@ import (
var
log
=
eventlog
.
Logger
(
"epictest"
)
type
ConfigOption
func
(
ctx
context
.
Context
)
(
*
core
.
IpfsNode
,
error
)
func
MocknetTestRepo
(
p
peer
.
ID
,
h
host
.
Host
,
conf
testutil
.
LatencyConfig
)
ConfigOption
{
func
MocknetTestRepo
(
p
peer
.
ID
,
h
host
.
Host
,
conf
testutil
.
LatencyConfig
)
core
.
ConfigOption
{
return
func
(
ctx
context
.
Context
)
(
*
core
.
IpfsNode
,
error
)
{
const
kWriteCacheElems
=
100
const
alwaysSendToPeer
=
true
...
...
@@ -43,7 +41,6 @@ func MocknetTestRepo(p peer.ID, h host.Host, conf testutil.LatencyConfig) Config
if
err
!=
nil
{
return
nil
,
err
}
return
&
core
.
IpfsNode
{
Peerstore
:
h
.
Peerstore
(),
Blockstore
:
bstore
,
...
...
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