Skip to content

Commit

Permalink
Update examples to the modified MDP worker interface
Browse files Browse the repository at this point in the history
  • Loading branch information
lerwys committed Mar 31, 2014
1 parent 8677b6c commit 0fa370b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libmdp/src/engine.c
Expand Up @@ -76,7 +76,7 @@ s_engine_new (char *broker, char *service, int verbose)
engine_t *self = (engine_t *) zmalloc (sizeof *self);

// Initialize engine state
self->worker = mdp_worker_new (broker, service, verbose);
self->worker = mdp_worker_new (NULL, broker, service, verbose);
self->sell_orders = zlist_new ();
self->buy_orders = zlist_new ();
return self;
Expand Down
2 changes: 1 addition & 1 deletion libmdp/src/test_worker.c
Expand Up @@ -7,7 +7,7 @@ int main (int argc, char *argv [])
{
int verbose = (argc > 1 && streq (argv [1], "-v"));
mdp_worker_t *session = mdp_worker_new (
"tcp://localhost:5555", "echo", verbose);
NULL, "tcp://localhost:5555", "echo", verbose);

while (1) {
zframe_t *reply_to;
Expand Down

0 comments on commit 0fa370b

Please sign in to comment.