summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorzhengchao <[email protected]>2022-10-22 16:02:09 +0800
committerzhengchao <[email protected]>2022-10-22 16:02:09 +0800
commitc904c9810dba4c1d56417524dbb03e93f10a7abe (patch)
treebd86d9675abfdde6ba59b2452b299d9583a8f83b /include
parentf2c519d6344313f47bad848cc1c4674189104f84 (diff)
The OC Token Bucket is robust to over consuming.
Diffstat (limited to 'include')
-rw-r--r--include/swarmkv/swarmkv.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/swarmkv/swarmkv.h b/include/swarmkv/swarmkv.h
index 97baa02..f7cd547 100644
--- a/include/swarmkv/swarmkv.h
+++ b/include/swarmkv/swarmkv.h
@@ -42,7 +42,8 @@ struct swarmkv_options;
struct swarmkv_options* swarmkv_options_new(void);
int swarmkv_options_set_p2p_port(struct swarmkv_options *opts, unsigned int p2p_port);
int swarmkv_options_set_health_check_port(struct swarmkv_options *opts, unsigned int health_check_port);
-int swarmkv_options_set_p2p_timeout(struct swarmkv_options *opts, unsigned int timeout_ms);
+int swarmkv_options_set_p2p_timeout_us(struct swarmkv_options *opts, unsigned int timeout_us);
+int swarmkv_options_set_sync_interval_us(struct swarmkv_options *opts, unsigned int interval_us);
int swarmkv_options_set_bind_address(struct swarmkv_options *opts, const char* ip_addr);
int swarmkv_options_set_logger(struct swarmkv_options *opts, void *logger);
int swarmkv_options_set_consul_port(struct swarmkv_options *opts, unsigned int consul_port);