mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-07-05 20:44:04 +00:00
Update dependencies (#2180)
* Update dependencies * Fix whatsmeow API changes
This commit is contained in:
10
vendor/github.com/hashicorp/go-plugin/CHANGELOG.md
generated
vendored
10
vendor/github.com/hashicorp/go-plugin/CHANGELOG.md
generated
vendored
@ -1,3 +1,13 @@
|
||||
## v1.6.1
|
||||
|
||||
BUGS:
|
||||
|
||||
* Suppress spurious `os.ErrClosed` on plugin shutdown [[GH-299](https://github.com/hashicorp/go-plugin/pull/299)]
|
||||
|
||||
ENHANCEMENTS:
|
||||
|
||||
* deps: bump google.golang.org/grpc to v1.58.3 [[GH-296](https://github.com/hashicorp/go-plugin/pull/296)]
|
||||
|
||||
## v1.6.0
|
||||
|
||||
CHANGES:
|
||||
|
18
vendor/github.com/hashicorp/go-plugin/client.go
generated
vendored
18
vendor/github.com/hashicorp/go-plugin/client.go
generated
vendored
@ -104,9 +104,9 @@ type Client struct {
|
||||
// goroutines.
|
||||
clientWaitGroup sync.WaitGroup
|
||||
|
||||
// stderrWaitGroup is used to prevent the command's Wait() function from
|
||||
// being called before we've finished reading from the stderr pipe.
|
||||
stderrWaitGroup sync.WaitGroup
|
||||
// pipesWaitGroup is used to prevent the command's Wait() function from
|
||||
// being called before we've finished reading from the stdout and stderr pipe.
|
||||
pipesWaitGroup sync.WaitGroup
|
||||
|
||||
// processKilled is used for testing only, to flag when the process was
|
||||
// forcefully killed.
|
||||
@ -756,8 +756,8 @@ func (c *Client) Start() (addr net.Addr, err error) {
|
||||
|
||||
// Start goroutine that logs the stderr
|
||||
c.clientWaitGroup.Add(1)
|
||||
c.stderrWaitGroup.Add(1)
|
||||
// logStderr calls Done()
|
||||
c.pipesWaitGroup.Add(1)
|
||||
// logStderr calls c.pipesWaitGroup.Done()
|
||||
go c.logStderr(runner.Name(), runner.Stderr())
|
||||
|
||||
c.clientWaitGroup.Add(1)
|
||||
@ -767,9 +767,9 @@ func (c *Client) Start() (addr net.Addr, err error) {
|
||||
|
||||
defer c.clientWaitGroup.Done()
|
||||
|
||||
// wait to finish reading from stderr since the stderr pipe reader
|
||||
// wait to finish reading from stdout/stderr since the stdout/stderr pipe readers
|
||||
// will be closed by the subsequent call to cmd.Wait().
|
||||
c.stderrWaitGroup.Wait()
|
||||
c.pipesWaitGroup.Wait()
|
||||
|
||||
// Wait for the command to end.
|
||||
err := runner.Wait(context.Background())
|
||||
@ -792,8 +792,10 @@ func (c *Client) Start() (addr net.Addr, err error) {
|
||||
// out of stdout
|
||||
linesCh := make(chan string)
|
||||
c.clientWaitGroup.Add(1)
|
||||
c.pipesWaitGroup.Add(1)
|
||||
go func() {
|
||||
defer c.clientWaitGroup.Done()
|
||||
defer c.pipesWaitGroup.Done()
|
||||
defer close(linesCh)
|
||||
|
||||
scanner := bufio.NewScanner(runner.Stdout())
|
||||
@ -1159,7 +1161,7 @@ func (c *Client) getGRPCMuxer(addr net.Addr) (*grpcmux.GRPCClientMuxer, error) {
|
||||
|
||||
func (c *Client) logStderr(name string, r io.Reader) {
|
||||
defer c.clientWaitGroup.Done()
|
||||
defer c.stderrWaitGroup.Done()
|
||||
defer c.pipesWaitGroup.Done()
|
||||
l := c.logger.Named(filepath.Base(name))
|
||||
|
||||
reader := bufio.NewReaderSize(r, c.config.PluginLogBufferSize)
|
||||
|
Reference in New Issue
Block a user