Fix spurious ttrpc client shutdown error log on success
Signed-off-by: Justin Terry (VM) <juterry@microsoft.com>
This commit is contained in:
parent
231bff7f60
commit
dee0945e18
@ -112,7 +112,7 @@ func (s *shim) Shutdown(ctx context.Context) error {
|
||||
_, err := s.task.Shutdown(ctx, &task.ShutdownRequest{
|
||||
ID: s.ID(),
|
||||
})
|
||||
if err != nil && err != ttrpc.ErrClosed {
|
||||
if err != nil && errors.Cause(err) != ttrpc.ErrClosed {
|
||||
return errdefs.FromGRPC(err)
|
||||
}
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user