bridge: wrap agent recv errors

This commit is contained in:
Leo 2020-08-28 17:12:06 +02:00
parent 5fc1065f0b
commit cb757192b3
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ func (e *SolanaBridgeWatcher) Run(ctx context.Context) error {
for {
ev, err := tokensLockedSub.Recv()
if err != nil {
errC <- err
errC <- fmt.Errorf("failed to receive message from agent: %w", err)
return
}