mirror of
https://git.mirrors.martin98.com/https://github.com/ceph/ceph-csi.git
synced 2025-08-03 00:20:40 +08:00
![dependabot[bot]](/assets/img/avatar_default.png)
Bumps [github.com/hashicorp/vault/api](https://github.com/hashicorp/vault) from 1.1.1 to 1.2.0. - [Release notes](https://github.com/hashicorp/vault/releases) - [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md) - [Commits](https://github.com/hashicorp/vault/compare/v1.1.1...v1.2.0) --- updated-dependencies: - dependency-name: github.com/hashicorp/vault/api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
19 lines
340 B
Go
19 lines
340 B
Go
package plugin
|
|
|
|
import (
|
|
"io"
|
|
"log"
|
|
)
|
|
|
|
func copyStream(name string, dst io.Writer, src io.Reader) {
|
|
if src == nil {
|
|
panic(name + ": src is nil")
|
|
}
|
|
if dst == nil {
|
|
panic(name + ": dst is nil")
|
|
}
|
|
if _, err := io.Copy(dst, src); err != nil && err != io.EOF {
|
|
log.Printf("[ERR] plugin: stream copy '%s' error: %s", name, err)
|
|
}
|
|
}
|