update
This commit is contained in:
@@ -40,10 +40,7 @@ func init() {
|
||||
u2i.Set(msg.FromUserName, sender.uid)
|
||||
}
|
||||
core.Senders <- sender
|
||||
fmt.Println("++++")
|
||||
end := <-sender.Wait
|
||||
fmt.Println("----")
|
||||
fmt.Println(end)
|
||||
if end == "" {
|
||||
return nil
|
||||
}
|
||||
@@ -160,6 +157,5 @@ func (sender *Sender) Disappear(lifetime ...time.Duration) {
|
||||
}
|
||||
|
||||
func (sender *Sender) Finish() {
|
||||
fmt.Println("finish")
|
||||
sender.Wait <- strings.Join(sender.Responses, "\n")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user