rename stream.Cancel to stream.CloseForShutdown

This commit is contained in:
Marten Seemann
2017-12-13 16:32:32 +07:00
parent d28f09837e
commit 8c5741ae79
8 changed files with 35 additions and 34 deletions

View File

@@ -317,7 +317,7 @@ func (m *streamsMap) CloseWithError(err error) {
m.nextStreamOrErrCond.Broadcast()
m.openStreamOrErrCond.Broadcast()
for _, s := range m.openStreams {
m.streams[s].Cancel(err)
m.streams[s].CloseForShutdown(err)
}
}