Skip to content

Commit

Permalink
rename field
Browse files Browse the repository at this point in the history
  • Loading branch information
conradludgate committed Feb 13, 2025
1 parent c8206cf commit 0aa8423
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions neonvm-runner/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -897,11 +897,11 @@ func sendFilesToNeonvmDaemon(ctx context.Context, hostpath, guestpath string) er
return fmt.Errorf("could not open file: %w", err)
}

dto := make(map[string]File)
encodedFiles := make(map[string]File)
for k, v := range files {
dto[k] = File{Data: base64.StdEncoding.EncodeToString(v)}
encodedFiles[k] = File{Data: base64.StdEncoding.EncodeToString(v)}
}
body, err := json.Marshal(dto)
body, err := json.Marshal(encodedFiles)
if err != nil {
return fmt.Errorf("could not encode files: %w", err)
}
Expand Down

0 comments on commit 0aa8423

Please sign in to comment.