Skip to content

Commit

Permalink
Refactor client msgs to use utlist to reduce code complexity.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Apr 3, 2019
1 parent 8097ec2 commit fb8a2ba
Show file tree
Hide file tree
Showing 9 changed files with 222 additions and 188 deletions.
2 changes: 0 additions & 2 deletions lib/mosquitto_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,7 @@ struct mosquitto {
bool is_bridge;
struct mosquitto__bridge *bridge;
struct mosquitto_client_msg *inflight_msgs;
struct mosquitto_client_msg *last_inflight_msg;
struct mosquitto_client_msg *queued_msgs;
struct mosquitto_client_msg *last_queued_msg;
unsigned long msg_bytes;
unsigned long msg_bytes12;
int msg_count;
Expand Down
4 changes: 0 additions & 4 deletions src/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ struct mosquitto *context__init(struct mosquitto_db *db, mosq_sock_t sock)
}
}
context->bridge = NULL;
context->inflight_msgs = NULL;
context->last_inflight_msg = NULL;
context->queued_msgs = NULL;
context->last_queued_msg = NULL;
context->receive_maximum = db->config->max_inflight_messages;
context->send_maximum = db->config->max_inflight_messages;
context->maximum_qos = 2;
Expand Down
Loading

0 comments on commit fb8a2ba

Please sign in to comment.