From 8e2eb3b29b867fe079a295d5b88517397f86ae03 Mon Sep 17 00:00:00 2001 From: NotRyan Date: Wed, 15 Sep 2021 18:19:49 -0700 Subject: [PATCH] Minor typo fix in dev docs (#8021) Signed-off-by: NotRyan Co-authored-by: NotRyan --- docs/developer_guides/appendix_a_basic_components.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/developer_guides/appendix_a_basic_components.md b/docs/developer_guides/appendix_a_basic_components.md index fdd09ba03a..15fb441338 100644 --- a/docs/developer_guides/appendix_a_basic_components.md +++ b/docs/developer_guides/appendix_a_basic_components.md @@ -58,7 +58,7 @@ type TimeTickProvider interface { The ID is stored in a key-value pair on etcd. The key is metaRootPath + "/services/ServerID". The initial value is 0. When a service is registered, it is incremented by 1 and returned to the next registered service. -###### Registeration +###### Registration * Registration is achieved through etcd's lease mechanism. @@ -79,7 +79,7 @@ The ID is stored in a key-value pair on etcd. The key is metaRootPath + "/servic * By obtaining the address, you can establish a connection with other services -* If a service is exclusive, the key will not have **ServerID**. But **ServerID** still will be stored in value. +* If a service is exclusive, the key will not have **ServerID**. But **ServerID** still will be stored in value. ###### Discovery @@ -436,7 +436,7 @@ type BaseKV interface { ```go type TxnKV interface { BaseKV - + MultiSaveAndRemove(saves map[string]string, removals []string) error MultiRemoveWithPrefix(keys []string) error MultiSaveAndRemoveWithPrefix(saves map[string]string, removals []string) error @@ -445,7 +445,7 @@ type TxnKV interface { ###### A.7.3 MetaKv -```go +```go type MetaKv interface { TxnKV GetPath(key string) string @@ -577,5 +577,3 @@ func (kv *RocksdbKV) MultiSaveAndRemoveWithPrefix(saves map[string]string, remov ``` RocksdbKV implements all *TxnKV* interfaces.h - -