diff --git a/cmd.c b/cmd.c index 29aed41..aa5d30d 100644 --- a/cmd.c +++ b/cmd.c @@ -40,7 +40,6 @@ struct pubsub_client { struct evhttp_request *rq; }; -void __redisAsyncDisconnect(redisAsyncContext *ac); void on_http_disconnect(struct evhttp_connection *evcon, void *ctx) { struct pubsub_client *ps = ctx; diff --git a/formats/json.c b/formats/json.c index 5457bf5..249400d 100644 --- a/formats/json.c +++ b/formats/json.c @@ -44,14 +44,8 @@ json_reply(redisAsyncContext *c, void *r, void *privdata) { evhttp_add_header(cmd->rq->output_headers, "Content-Type", "application/json"); if(cmd_is_subscribe(cmd)) { - redisCallback cb; free_cmd = 0; - /* reinstall callback */ - cb.fn = json_reply; - cb.privdata = privdata; - __redisPushCallback(&c->replies, &cb); - /* start streaming */ if(cmd->started_responding == 0) { cmd->started_responding = 1;