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

Unified Diff: client/isolate/isolate.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/isolate/isolate.go
diff --git a/client/isolate/isolate.go b/client/isolate/isolate.go
index ab97eada307c6a5c3efd3eeb2ccdf7f7801b9a0f..6c3e2ba1ccfbe0c8272f4e2bea2720ab621ef09d 100644
--- a/client/isolate/isolate.go
+++ b/client/isolate/isolate.go
@@ -19,6 +19,7 @@ import (
"github.com/luci/luci-go/client/archiver"
"github.com/luci/luci-go/client/internal/common"
"github.com/luci/luci-go/client/internal/tracer"
+ "github.com/luci/luci-go/client/isolatedclient"
"github.com/luci/luci-go/common/flag/stringmapflag"
"github.com/luci/luci-go/common/isolated"
)
@@ -300,5 +301,5 @@ func archive(arch archiver.Archiver, opts *ArchiveOptions, displayName string) (
if err := ioutil.WriteFile(opts.Isolated, raw.Bytes(), 0644); err != nil {
return nil, err
}
- return arch.Push(displayName, bytes.NewReader(raw.Bytes()), 0), nil
+ return arch.Push(displayName, isolatedclient.NewBytesSource(raw.Bytes()), 0), nil
}

Powered by Google App Engine
This is Rietveld 408576698