mirror of
https://github.com/jeremyd/ergo.git
synced 2026-06-12 07:43:31 -07:00
do a type conversion better
This commit is contained in:
+1
-2
@@ -78,8 +78,7 @@ func (channel *Channel) receiveReplies(replies <-chan Reply) {
|
||||
log.Printf("%s ← %s : %s", channel, reply.Source(), reply)
|
||||
}
|
||||
for client := range channel.members {
|
||||
var dest Identifier = client
|
||||
if reply.Source() != dest {
|
||||
if reply.Source() != Identifier(client) {
|
||||
client.Reply(reply)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user