mirror of
https://github.com/rancher/rke.git
synced 2025-09-07 18:12:06 +00:00
K8s Vendor update to 1.10.5
This commit is contained in:
2
vendor/github.com/json-iterator/go/feature_pool.go
generated
vendored
2
vendor/github.com/json-iterator/go/feature_pool.go
generated
vendored
@@ -28,6 +28,7 @@ func (cfg *frozenConfig) BorrowStream(writer io.Writer) *Stream {
|
||||
|
||||
func (cfg *frozenConfig) ReturnStream(stream *Stream) {
|
||||
stream.Error = nil
|
||||
stream.Attachment = nil
|
||||
select {
|
||||
case cfg.streamPool <- stream:
|
||||
return
|
||||
@@ -48,6 +49,7 @@ func (cfg *frozenConfig) BorrowIterator(data []byte) *Iterator {
|
||||
|
||||
func (cfg *frozenConfig) ReturnIterator(iter *Iterator) {
|
||||
iter.Error = nil
|
||||
iter.Attachment = nil
|
||||
select {
|
||||
case cfg.iteratorPool <- iter:
|
||||
return
|
||||
|
Reference in New Issue
Block a user