diff options
author | Thomas White <taw@physics.org> | 2024-06-04 14:37:08 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2024-06-04 14:37:31 +0200 |
commit | c5a643628ac10db775237968946e1759b83743fb (patch) | |
tree | c495d45b2a11a0ede9b4b6702b36e25b829a5b58 /src/im-asapo.c | |
parent | 3495dff6d8dc1242b273789466eaa3f17ee6eca7 (diff) |
indexamajig: Add --asapo-acks option
Diffstat (limited to 'src/im-asapo.c')
-rw-r--r-- | src/im-asapo.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/im-asapo.c b/src/im-asapo.c index 6df14e93..6bcffe2f 100644 --- a/src/im-asapo.c +++ b/src/im-asapo.c @@ -55,6 +55,7 @@ struct im_asapo AsapoProducerHandle producer; AsapoStringHandle group_id; int wait_for_stream; + int use_ack; }; @@ -173,7 +174,10 @@ struct im_asapo *im_asapo_connect(struct im_asapo_params *params) a->group_id = asapo_string_from_c_str(params->group_id); a->wait_for_stream = params->wait_for_stream; - asapo_consumer_set_resend_nacs(a->consumer, 1, 10000, 3); + a->use_ack = params->use_ack; + if ( a->use_ack ) { + asapo_consumer_set_resend_nacs(a->consumer, 1, 10000, 3); + } asapo_free_handle(&cred); |