fix: use api.ErrActorNotFound instead of types.ErrActorNotFound
This commit is contained in:
parent
1bd77c7fab
commit
30f147770c
@ -1093,7 +1093,7 @@ func (a *StateAPI) StateListMessages(ctx context.Context, match *api.MessageMatc
|
|||||||
_, err := a.StateLookupID(ctx, match.To, tsk)
|
_, err := a.StateLookupID(ctx, match.To, tsk)
|
||||||
|
|
||||||
// if the recipient doesn't exist at the start point, we're not gonna find any matches
|
// if the recipient doesn't exist at the start point, we're not gonna find any matches
|
||||||
if xerrors.Is(err, types.ErrActorNotFound) {
|
if xerrors.Is(err, &api.ErrActorNotFound{}) {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1104,7 +1104,7 @@ func (a *StateAPI) StateListMessages(ctx context.Context, match *api.MessageMatc
|
|||||||
_, err := a.StateLookupID(ctx, match.From, tsk)
|
_, err := a.StateLookupID(ctx, match.From, tsk)
|
||||||
|
|
||||||
// if the sender doesn't exist at the start point, we're not gonna find any matches
|
// if the sender doesn't exist at the start point, we're not gonna find any matches
|
||||||
if xerrors.Is(err, types.ErrActorNotFound) {
|
if xerrors.Is(err, &api.ErrActorNotFound{}) {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user