Skip to content

Commit

Permalink
api: fix japecheck errors
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjan committed Mar 19, 2024
1 parent 50b7d76 commit 8493dbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autopilot/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (c *Client) HostInfo(hostKey types.PublicKey) (resp api.HostInfoResponse, e

// HostInfo returns information about all hosts.
func (c *Client) HostInfos(ctx context.Context, filterMode, usabilityMode string, addressContains string, keyIn []types.PublicKey, offset, limit int) (resp []api.HostInfoResponse, err error) {
err = c.c.POST("/hosts", api.SearchHostsRequest{
err = c.c.POST("/hosts", api.HostInfosRequest{
Offset: offset,
Limit: limit,
FilterMode: filterMode,
Expand Down
2 changes: 1 addition & 1 deletion bus/client/hosts.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (c *Client) UpdateHostInfo(ctx context.Context, autopilotID string, hostKey

// HostInfos returns the host info for all hosts known to the autopilot with the given identifier.
func (c *Client) HostInfos(ctx context.Context, autopilotID string, opts api.HostInfoOptions) (hostInfos []api.HostInfo, err error) {
err = c.c.WithContext(ctx).POST(fmt.Sprintf("/autopilot/%s", autopilotID), api.HostInfosRequest{
err = c.c.WithContext(ctx).POST(fmt.Sprintf("/autopilot/%s/hosts", autopilotID), api.HostInfosRequest{
Offset: opts.Offset,
Limit: opts.Limit,
FilterMode: opts.FilterMode,
Expand Down

0 comments on commit 8493dbf

Please sign in to comment.