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
312b40ba
Commit
312b40ba
authored
Aug 23, 2019
by
Dirk McCormick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: remove unused code
parent
61972176
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
sessionmanager/sessionmanager_test.go
sessionmanager/sessionmanager_test.go
+0
-18
No files found.
sessionmanager/sessionmanager_test.go
View file @
312b40ba
...
...
@@ -89,24 +89,6 @@ func requestSplitterFactory(ctx context.Context) bssession.RequestSplitter {
return
&
fakeRequestSplitter
{}
}
func
cmpSessionCids
(
s
*
fakeSession
,
cids
[]
cid
.
Cid
)
bool
{
if
len
(
s
.
ks
)
!=
len
(
cids
)
{
return
false
}
for
_
,
bk
:=
range
s
.
ks
{
has
:=
false
for
_
,
c
:=
range
cids
{
if
c
==
bk
{
has
=
true
}
}
if
!
has
{
return
false
}
}
return
true
}
func
TestAddingSessions
(
t
*
testing
.
T
)
{
ctx
:=
context
.
Background
()
ctx
,
cancel
:=
context
.
WithCancel
(
ctx
)
...
...
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