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
e393edcc
Commit
e393edcc
authored
Nov 21, 2014
by
Brian Tiger Chow
Committed by
Jeromy
Dec 05, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "hotfix(dep) duplicates TEMP DONT MERGE TO MASTER"
This reverts commit 49004e9743110ba69c07852c3a105dac2e01e1c4.
parent
044db5be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
Godeps/_workspace/src/github.com/tuxychandru/pubsub/pubsub.go
...ps/_workspace/src/github.com/tuxychandru/pubsub/pubsub.go
+0
-8
No files found.
Godeps/_workspace/src/github.com/tuxychandru/pubsub/pubsub.go
View file @
e393edcc
...
...
@@ -66,14 +66,6 @@ func (ps *PubSub) AddSub(ch chan interface{}, topics ...string) {
ps
.
cmdChan
<-
cmd
{
op
:
sub
,
topics
:
topics
,
ch
:
ch
}
}
// AddSubOnce adds one-time subscriptions to an existing channel.
// For each topic, a message will be sent once.
func
(
ps
*
PubSub
)
AddSubOnce
(
ch
chan
interface
{},
topics
...
string
)
{
for
_
,
t
:=
range
topics
{
ps
.
cmdChan
<-
cmd
{
op
:
subOnce
,
topics
:
[]
string
{
t
},
ch
:
ch
}
}
}
// Pub publishes the given message to all subscribers of
// the specified topics.
func
(
ps
*
PubSub
)
Pub
(
msg
interface
{},
topics
...
string
)
{
...
...
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