rpc: move NotaryRequestEvent to the subscriptions pkg

It is used for subscriptions only, so move it to the subscriptions pkg.
This commit is contained in:
Anna Shaleva 2021-09-24 12:23:30 +03:00
parent b3ea7504cb
commit 5c97e0dcf2
5 changed files with 19 additions and 17 deletions

View file

@ -1705,7 +1705,7 @@ chloop:
resp.Payload[0] = tx
case e := <-s.notaryRequestCh:
resp.Event = response.NotaryRequestEventID
resp.Payload[0] = &response.NotaryRequestEvent{
resp.Payload[0] = &subscriptions.NotaryRequestEvent{
Type: e.Type,
NotaryRequest: e.Data.(*payload.P2PNotaryRequest),
}