From f0dbf611dff0c814baefb2552a9b7d116818eb7f Mon Sep 17 00:00:00 2001 From: Hailong Yang Date: Mon, 7 Oct 2024 22:37:44 -0400 Subject: [PATCH] fix: duplicate var and error in query --- api/pod.go | 2 +- cmd/pod/startPod.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/api/pod.go b/api/pod.go index dad41d9..6847957 100644 --- a/api/pod.go +++ b/api/pod.go @@ -362,7 +362,7 @@ func StartOnDemandPod(id string) (pod map[string]interface{}, err error) { func StartSpotPod(id string, bidPerGpu float32, gpuCount int) (podBidResume map[string]interface{}, err error) { input := Input{ Query: ` - mutation Mutation($podId: String!, $bidPerGpu: Float!) { + mutation Mutation($podId: String!, $bidPerGpu: Float!, $gpuCount: Int!) { podBidResume(input: {podId: $podId, bidPerGpu: $bidPerGpu, gpuCount: $gpuCount}) { id costPerHr diff --git a/cmd/pod/startPod.go b/cmd/pod/startPod.go index b908350..563b24c 100644 --- a/cmd/pod/startPod.go +++ b/cmd/pod/startPod.go @@ -9,7 +9,6 @@ import ( ) var bidPerGpu float32 -var gpuCount int var StartPodCmd = &cobra.Command{ Use: "pod [podId]",