Skip to content

Commit

Permalink
Fix: adjust types (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
rybnovdws authored Jan 17, 2024
1 parent 7a1e5c8 commit 128489f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dws/provider/client/gpu_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ type RentedGpuInfoResponse struct {
HasAvx int64 `json:"has_avx"`
HostId int64 `json:"host_id"`
HostRunTime int64 `json:"host_run_time"`
HostingType string `json:"hosting_type,omitempty"`
HostingType any `json:"hosting_type,omitempty"`
Id int64 `json:"id"`
InetDown float64 `json:"inet_down"`
InetDownBilled float64 `json:"inet_down_billed,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion dws/resource/gpu/model_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func TestGPUResourceModel_FromClientRentedGPUResponse(t *testing.T) {
HasAvx: 0,
HostId: 0,
HostRunTime: 0,
HostingType: "",
HostingType: 0,
Id: 0,
InetDown: 0,
InetDownBilled: 0,
Expand Down

0 comments on commit 128489f

Please sign in to comment.