diff options
| author | 畅晨铭 <[email protected]> | 2022-01-14 16:07:30 +0800 |
|---|---|---|
| committer | 畅晨铭 <[email protected]> | 2022-01-14 16:07:30 +0800 |
| commit | 764790f4e14432f831fa8c12c583cdc8a0d90576 (patch) | |
| tree | eabb7ada237e257a76f285cd082a14760181d30e /include | |
| parent | 43ee1c3bb824acf61bb8600b37ac7490db08aeb3 (diff) | |
feat(rrpc): 引入rrpc库,在bootstrap中添加通信方式选择
Diffstat (limited to 'include')
| -rw-r--r-- | include/swarmkv.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/swarmkv.h b/include/swarmkv.h index 89372de..629c936 100644 --- a/include/swarmkv.h +++ b/include/swarmkv.h @@ -18,8 +18,8 @@ struct swarmkv_writeoptions; struct swarmkv_store; // config example: "node_id=1;token=49ffb3ae-8e7e-40ab-bc3f-824567e932fe,db=0"; -// bootstraps example: "self=0.0.0.0:8323;peers=192.168.0.100:8323,192.168.0.101:8323" -// bootstraps example: "self=0.0.0.0:8323;peers=tcp://192.168.0.100:8323,tcp://192.168.0.101:8323" +// bootstraps example: "proto=udp;self=0.0.0.0:8323;peers=192.168.0.100:8323,192.168.0.101:8323" +// bootstraps example: "proto=udp;self=0.0.0.0:8323;peers=tcp://192.168.0.100:8323,tcp://192.168.0.101:8323" struct swarmkv_store *swarmkv_open(const char *bootstraps, const char *config, char **err); void swarmkv_close(struct swarmkv_store *store); int swarmkv_set(struct swarmkv_store *store, const char *table, const struct swarmkv_writeoptions *options, |
