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-bitswap
Commits
2dde408c
Commit
2dde408c
authored
Mar 18, 2018
by
Łukasz Magiera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix error style
License: MIT Signed-off-by:
Łukasz Magiera
<
magik6k@gmail.com
>
parent
2cd0ce70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
testnet/virtual.go
testnet/virtual.go
+2
-2
No files found.
testnet/virtual.go
View file @
2dde408c
...
...
@@ -88,7 +88,7 @@ func (n *network) SendMessage(
receiver
,
ok
:=
n
.
clients
[
to
]
if
!
ok
{
return
errors
.
New
(
"
C
annot locate peer on network"
)
return
errors
.
New
(
"
c
annot locate peer on network"
)
}
// nb: terminate the context since the context wouldn't actually be passed
...
...
@@ -107,7 +107,7 @@ func (n *network) SendMessage(
func
(
n
*
network
)
deliver
(
r
bsnet
.
Receiver
,
from
peer
.
ID
,
message
bsmsg
.
BitSwapMessage
)
error
{
if
message
==
nil
||
from
==
""
{
return
errors
.
New
(
"
I
nvalid input"
)
return
errors
.
New
(
"
i
nvalid input"
)
}
n
.
delay
.
Wait
()
...
...
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