Skip to content

Commit

Permalink
[!feat] Remove Active Set (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
warittornc authored Oct 29, 2024
1 parent 7fb2f89 commit 6c6b59c
Show file tree
Hide file tree
Showing 16 changed files with 104 additions and 509 deletions.
1 change: 0 additions & 1 deletion bothan-api/client/go-client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (

type Client interface {
UpdateRegistry(ipfsHash string, version string) error
SetActiveSignalIDs(signalIDs []string) error
PushMonitoringRecords(uuid, txHash string) error
GetPrices(signalIDs []string) (*proto.GetPricesResponse, error)
}
9 changes: 0 additions & 9 deletions bothan-api/client/go-client/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,6 @@ func (c *GrpcClient) UpdateRegistry(ipfsHash string, version string) error {
return err
}

func (c *GrpcClient) SetActiveSignalIDs(signalIDs []string) error {
client := signal.NewSignalServiceClient(c.connection)
ctx, cancel := context.WithTimeout(context.Background(), c.timeout)
defer cancel()

_, err := client.SetActiveSignalIds(ctx, &signal.SetActiveSignalIdsRequest{SignalIds: signalIDs})
return err
}

func (c *GrpcClient) PushMonitoringRecords(uuid, txHash string) error {
client := signal.NewSignalServiceClient(c.connection)
ctx, cancel := context.WithTimeout(context.Background(), c.timeout)
Expand Down
145 changes: 35 additions & 110 deletions bothan-api/client/go-client/proto/signal/signal.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

87 changes: 0 additions & 87 deletions bothan-api/client/go-client/proto/signal/signal.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6c6b59c

Please sign in to comment.