Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Unified Diff: client/cipd/client.go

Issue 1872363004: cipd: accept a function in EnsureFile (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: rebased Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | client/cipd/local/deployer.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/cipd/client.go
diff --git a/client/cipd/client.go b/client/cipd/client.go
index 0382271f61a91818271a0201d405f9e39ec902fa..d74a6908be9c31ab2d021cc28d3496c383a8d959 100644
--- a/client/cipd/client.go
+++ b/client/cipd/client.go
@@ -476,7 +476,7 @@ func (client *clientImpl) withTagCache(f func(*internal.TagCache)) {
start = time.Now()
out, err := cache.Save()
if err == nil {
- err = fs.EnsureFile(path, bytes.NewReader(out))
+ err = local.EnsureFile(fs, path, bytes.NewReader(out))
}
loadSaveTime += time.Since(start)
if err != nil {
« no previous file with comments | « no previous file | client/cipd/local/deployer.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698