rename builds -> bots

This commit is contained in:
Lunny Xiao
2022-11-21 16:18:12 +08:00
committed by Jason Song
parent c61ac24c1c
commit 2ecb59c092
24 changed files with 81 additions and 78 deletions

View File

@ -104,7 +104,7 @@ func TransferLogs(ctx context.Context, filename string) (func(), error) {
}
defer f.Close()
if _, err := storage.Builds.Save(filename, f, -1); err != nil {
if _, err := storage.Bots.Save(filename, f, -1); err != nil {
return nil, fmt.Errorf("storage save %q: %w", filename, err)
}
return remove, nil
@ -119,7 +119,7 @@ func openLogs(ctx context.Context, inStorage bool, filename string) (io.ReadSeek
}
return f, nil
}
f, err := storage.Builds.Open(filename)
f, err := storage.Bots.Open(filename)
if err != nil {
return nil, fmt.Errorf("storage open %q: %w", filename, err)
}