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
173ac606
Commit
173ac606
authored
Nov 21, 2014
by
Brian Tiger Chow
Committed by
Jeromy
Dec 05, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc(bs/n) rm dead code
License: MIT Signed-off-by:
Brian Tiger Chow
<
brian@perfmode.com
>
parent
a50a3497
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
22 deletions
+0
-22
notifications/notifications.go
notifications/notifications.go
+0
-22
No files found.
notifications/notifications.go
View file @
173ac606
...
@@ -29,28 +29,6 @@ func (ps *impl) Publish(block *blocks.Block) {
...
@@ -29,28 +29,6 @@ func (ps *impl) Publish(block *blocks.Block) {
ps
.
wrapped
.
Pub
(
block
,
topic
)
ps
.
wrapped
.
Pub
(
block
,
topic
)
}
}
func
(
ps
*
impl
)
SubscribeDeprec
(
ctx
context
.
Context
,
keys
...
u
.
Key
)
<-
chan
*
blocks
.
Block
{
topics
:=
make
([]
string
,
0
)
for
_
,
key
:=
range
keys
{
topics
=
append
(
topics
,
string
(
key
))
}
subChan
:=
ps
.
wrapped
.
SubOnce
(
topics
...
)
blockChannel
:=
make
(
chan
*
blocks
.
Block
,
1
)
// buffered so the sender doesn't wait on receiver
go
func
()
{
defer
close
(
blockChannel
)
select
{
case
val
:=
<-
subChan
:
block
,
ok
:=
val
.
(
*
blocks
.
Block
)
if
ok
{
blockChannel
<-
block
}
case
<-
ctx
.
Done
()
:
ps
.
wrapped
.
Unsub
(
subChan
,
topics
...
)
}
}()
return
blockChannel
}
func
(
ps
*
impl
)
Shutdown
()
{
func
(
ps
*
impl
)
Shutdown
()
{
ps
.
wrapped
.
Shutdown
()
ps
.
wrapped
.
Shutdown
()
}
}
...
...
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