Skip to content

Commit

Permalink
fix: RelayerProxy interface mismatch (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
red-0ne authored Oct 23, 2023
1 parent 9af3ca0 commit 6e840d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/relayer/proxy/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type RelayerProxy interface {
Start(ctx context.Context) error

// Stop stops all supported proxies and returns an error if any of them fail.
Stop() error
Stop(ctx context.Context) error

// ServedRelays returns an observable that notifies the miner about the relays that have been served.
// A served relay is one whose RelayRequest's signature and session have been verified,
Expand Down
4 changes: 2 additions & 2 deletions pkg/relayer/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type relayerProxy struct {
// providedServices is a map of the services provided by the relayer proxy. Each provided service
// has the necessary information to start the server that listens for incoming relay requests and
// the client that proxies the request to the supported native service.
providedServices map[string][]ProvidedService
providedServices map[string][]*ProvidedService

// servedRelays is an observable that notifies the miner about the relays that have been served.
servedRelays observable.Observable[*types.Relay]
Expand Down Expand Up @@ -106,7 +106,7 @@ func (rp *relayerProxy) ServedRelays() observable.Observable[*types.Relay] {
func buildProvidedServices(
ctx context.Context,
supplierQuerier suppliertypes.QueryClient,
) map[string]ProvidedService {
) map[string][]*ProvidedService {
panic("TODO: implement buildProvidedServices")
}

Expand Down

0 comments on commit 6e840d6

Please sign in to comment.