[Marathon] Bump go-marathon dep
attempt to remove glide from integration glide trim Revert "attempt to remove glide from integration" This reverts commit c5b42b6cdebb44e730080a0cf20a871c11ef095b.
This commit is contained in:
parent
bd6056c269
commit
4e238280bc
376 changed files with 32648 additions and 96 deletions
9
vendor/github.com/gambol99/go-marathon/subscription.go
generated
vendored
9
vendor/github.com/gambol99/go-marathon/subscription.go
generated
vendored
|
@ -167,19 +167,14 @@ func (r *marathonClient) registerSSESubscription() error {
|
|||
if r.subscribedToSSE {
|
||||
return nil
|
||||
}
|
||||
// Get a member from the cluster
|
||||
marathon, err := r.hosts.getMember()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
request, err := r.buildAPIRequest("GET", fmt.Sprintf("%s/%s", marathon, marathonAPIEventStream), nil)
|
||||
request, _, err := r.buildAPIRequest("GET", marathonAPIEventStream, nil)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// Try to connect to stream, reusing the http client settings
|
||||
stream, err := eventsource.SubscribeWith("", r.httpClient, request)
|
||||
stream, err := eventsource.SubscribeWith("", r.config.HTTPClient, request)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue