Skip to content

Commit

Permalink
Merge pull request #169 from runpod/yhl/fix
Browse files Browse the repository at this point in the history
fix: duplicate var and error in query
  • Loading branch information
DireLines authored Oct 8, 2024
2 parents 8668c95 + f0dbf61 commit 2fb4b05
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion api/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion cmd/pod/startPod.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
)

var bidPerGpu float32
var gpuCount int

var StartPodCmd = &cobra.Command{
Use: "pod [podId]",
Expand Down

0 comments on commit 2fb4b05

Please sign in to comment.