bridge: wrap agent recv errors
This commit is contained in:
parent
5fc1065f0b
commit
cb757192b3
|
@ -58,7 +58,7 @@ func (e *SolanaBridgeWatcher) Run(ctx context.Context) error {
|
||||||
for {
|
for {
|
||||||
ev, err := tokensLockedSub.Recv()
|
ev, err := tokensLockedSub.Recv()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
errC <- err
|
errC <- fmt.Errorf("failed to receive message from agent: %w", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue