watch => serve

This commit is contained in:
Ian Norden
2020-08-31 10:59:41 -05:00
parent f4591a6beb
commit d645f52e87
12 changed files with 153 additions and 225 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ import (
"github.com/ethereum/go-ethereum/rpc"
"github.com/vulcanize/ipld-eth-server/pkg/watch"
"github.com/vulcanize/ipld-eth-server/pkg/serve"
)
// Client is used to subscribe to the ipld-eth-server ipld data stream
@@ -38,6 +38,6 @@ func NewClient(c *rpc.Client) *Client {
}
// Stream is the main loop for subscribing to iplds from an ipld-eth-server server
func (c *Client) Stream(payloadChan chan watch.SubscriptionPayload, rlpParams []byte) (*rpc.ClientSubscription, error) {
func (c *Client) Stream(payloadChan chan serve.SubscriptionPayload, rlpParams []byte) (*rpc.ClientSubscription, error) {
return c.c.Subscribe(context.Background(), "vdb", payloadChan, "stream", rlpParams)
}