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

Unified Diff: client/archiver/utils.go

Issue 1846263002: Isolate: Use generators instead of seekers (Closed) Base URL: https://github.com/luci/luci-go@master
Patch Set: Tweaks from comments. Created 4 years, 9 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
Index: client/archiver/utils.go
diff --git a/client/archiver/utils.go b/client/archiver/utils.go
index d14b151e07d65c8ad8c55875330ae406f99740d3..ac224b059533d0229c63e9c6bcc3795b1ef9289f 100644
--- a/client/archiver/utils.go
+++ b/client/archiver/utils.go
@@ -15,6 +15,7 @@ import (
"sync"
"github.com/luci/luci-go/client/internal/tracer"
+ "github.com/luci/luci-go/client/isolatedclient"
"github.com/luci/luci-go/common/isolated"
)
@@ -252,7 +253,7 @@ func PushDirectory(a Archiver, root string, relDir string, blacklist []string) F
if err == nil {
raw := &bytes.Buffer{}
if err = json.NewEncoder(raw).Encode(i); err == nil {
- if f := a.Push(displayName, bytes.NewReader(raw.Bytes()), 0); f != nil {
+ if f := a.Push(displayName, isolatedclient.NewBytesSource(raw.Bytes()), 0); f != nil {
f.WaitForHashed()
err = f.Error()
d = f.Digest()

Powered by Google App Engine
This is Rietveld 408576698