async chan write read, no write for closed chan

This commit is contained in:
Chris Lu
2020-05-10 03:48:35 -07:00
parent 78afb8bf46
commit 6bf3eb69cb
5 changed files with 34 additions and 5 deletions

View File

@@ -55,8 +55,8 @@ func (mc *MessagingClient) NewSubChannel(chanName string) (*SubChannel, error) {
close(t.ch)
return
}
t.md5hash.Write(resp.Data.Value)
t.ch <- resp.Data.Value
t.md5hash.Write(resp.Data.Value)
}
}()