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

Unified Diff: logdog/client/butlerlib/streamclient/client_namedPipe_windows.go

Issue 2456953003: LogDog: Update client/bootstrap to generate URLs. (Closed)
Patch Set: Winders Created 4 years, 2 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: logdog/client/butlerlib/streamclient/client_namedPipe_windows.go
diff --git a/logdog/client/butlerlib/streamclient/client_namedPipe_windows.go b/logdog/client/butlerlib/streamclient/client_namedPipe_windows.go
index 298df6a75e02039656bcd49813427b6e0c54edb3..5198dbd93b4c46279c880ed6dacd38c1b874c1b9 100644
--- a/logdog/client/butlerlib/streamclient/client_namedPipe_windows.go
+++ b/logdog/client/butlerlib/streamclient/client_namedPipe_windows.go
@@ -24,7 +24,9 @@ func newNamedPipeClient(path string) (Client, error) {
return nil, errors.New("streamclient: cannot have empty named pipe path")
}
- return &clientImpl{func() (io.WriteCloser, error) {
- return npipe.Dial(fmt.Sprintf(`\\.\pipe\%s`, path))
- }}, nil
+ return &clientImpl{
+ factory: func() (io.WriteCloser, error) {
+ return npipe.Dial(fmt.Sprintf(`\\.\pipe\%s`, path))
+ },
+ }, nil
}
« no previous file with comments | « logdog/client/butlerlib/streamclient/client_namedPipe_posix.go ('k') | logdog/client/butlerlib/streamclient/client_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698