Skip to content

Commit

Permalink
Merge pull request #757 from envisia/master
Browse files Browse the repository at this point in the history
Updated the RxNetty based version of HystrixMetricsStreamHandler
  • Loading branch information
mattrjacobs committed Apr 16, 2015
2 parents 2d0ce6b + 1b6dd89 commit 1ebba20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies {
compile project(':hystrix-core')
compile "com.netflix.rxnetty:rx-netty:0.3.8"
compile 'io.reactivex:rxnetty:0.4.7'
compile 'org.codehaus.jackson:jackson-core-asl:1.9.2'
compile 'org.codehaus.jackson:jackson-mapper-asl:1.9.2'
testCompile 'junit:junit-dep:4.10'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
* (unless the client is shutdown).
*
* @author Tomasz Bak
* @author Christian Schmitt <c.schmitt@envisia.de>
*/
public class HystrixMetricsStreamHandler<I, O> implements RequestHandler<I, O> {

Expand Down Expand Up @@ -89,7 +90,7 @@ private Observable<Void> handleHystrixRequest(final HttpServerResponse<O> respon
.subscribe(new Action1<Long>() {
@Override
public void call(Long tick) {
if (!response.getChannelHandlerContext().channel().isOpen()) {
if (!response.getChannel().isOpen()) {
subscription.unsubscribe();
return;
}
Expand Down

0 comments on commit 1ebba20

Please sign in to comment.