summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorZheng Chao <[email protected]>2023-01-18 20:17:02 +0800
committerZheng Chao <[email protected]>2023-01-18 20:17:02 +0800
commitc283dfdac2ea674fdd52fc61f00814caf8f6f5c6 (patch)
tree1c51eafc559c90e19fa1dfb55ef10ce99b34dca1 /examples
parent40f5ca926572ee4089e16db73d232237fe2e5547 (diff)
:construction: Refactoring Consul communication of keyspace.
Diffstat (limited to 'examples')
-rw-r--r--examples/async_example.c2
-rw-r--r--examples/simple_example.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/async_example.c b/examples/async_example.c
index b9bc5a1..5149bcf 100644
--- a/examples/async_example.c
+++ b/examples/async_example.c
@@ -24,7 +24,7 @@ int main(int argc, char **argv)
for(size_t i=0; i<2; i++)
{
opts[i]=swarmkv_options_new();
- swarmkv_options_set_p2p_port(opts[i], 5210+i);
+ swarmkv_options_set_cluster_port(opts[i], 5210+i);
db[i]=swarmkv_open(opts[i], cluster_name, &err);
if(err)
{
diff --git a/examples/simple_example.c b/examples/simple_example.c
index fad8262..d00eae1 100644
--- a/examples/simple_example.c
+++ b/examples/simple_example.c
@@ -11,7 +11,7 @@ int main(int argc, char **argv)
for(size_t i=0; i<2; i++)
{
opts[i]=swarmkv_options_new();
- swarmkv_options_set_p2p_port(opts[i], 5210+i);
+ swarmkv_options_set_cluster_port(opts[i], 5210+i);
db[i]=swarmkv_open(opts[i], cluster_name, &err);
if(err)
{