Skip to content

Instantly share code, notes, and snippets.

@tomwhoiscontrary
Created January 29, 2015 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomwhoiscontrary/50e19894d6c018fd6133 to your computer and use it in GitHub Desktop.
Save tomwhoiscontrary/50e19894d6c018fd6133 to your computer and use it in GitHub Desktop.
diff --git a/commands/execute.go b/commands/execute.go
index d1a30ca..9d51506 100644
--- a/commands/execute.go
+++ b/commands/execute.go
@@ -96,8 +96,8 @@ func Execute(c *cli.Context) {
signal.Notify(terminate, syscall.SIGINT, syscall.SIGTERM)
eventSource := &sse.EventSource{
- Client: atcRequester.httpClient,
- CreateRequest: func() *http.Request {
+ client: atcRequester.httpClient,
+ createRequest: func() *http.Request {
logOutput, err := atcRequester.CreateRequest(
atc.BuildEvents,
rata.Params{"build_id": strconv.Itoa(build.ID)},
diff --git a/commands/watch.go b/commands/watch.go
index 03faae7..99942ae 100644
--- a/commands/watch.go
+++ b/commands/watch.go
@@ -22,8 +22,8 @@ func Watch(c *cli.Context) {
build := getBuild(c, atcRequester.httpClient, atcRequester.RequestGenerator)
eventSource := &sse.EventSource{
- Client: atcRequester.httpClient,
- CreateRequest: func() *http.Request {
+ client: atcRequester.httpClient,
+ createRequest: func() *http.Request {
logOutput, err := atcRequester.CreateRequest(
atc.BuildEvents,
rata.Params{"build_id": strconv.Itoa(build.ID)},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment