mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #8105 from nkovacs/its
Documentation: grammar fixes, it's -> its
This commit is contained in:
commit
3a37b68cda
@ -59,7 +59,7 @@ Use a custom context to set timeouts on your operations:
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
|
||||
defer cancel()
|
||||
|
||||
// set a new key, ignoring it's previous state
|
||||
// set a new key, ignoring its previous state
|
||||
_, err := kAPI.Set(ctx, "/ping", "pong", nil)
|
||||
if err != nil {
|
||||
if err == context.DeadlineExceeded {
|
||||
|
@ -44,7 +44,7 @@ type Member struct {
|
||||
PeerURLs []string `json:"peerURLs"`
|
||||
|
||||
// ClientURLs represents the HTTP(S) endpoints on which this Member
|
||||
// serves it's client-facing APIs.
|
||||
// serves its client-facing APIs.
|
||||
ClientURLs []string `json:"clientURLs"`
|
||||
}
|
||||
|
||||
|
2
proxy/grpcproxy/cache/store.go
vendored
2
proxy/grpcproxy/cache/store.go
vendored
@ -40,7 +40,7 @@ type Cache interface {
|
||||
Close()
|
||||
}
|
||||
|
||||
// keyFunc returns the key of an request, which is used to look up in the cache for it's caching response.
|
||||
// keyFunc returns the key of a request, which is used to look up its caching response in the cache.
|
||||
func keyFunc(req *pb.RangeRequest) string {
|
||||
// TODO: use marshalTo to reduce allocation
|
||||
b, err := req.Marshal()
|
||||
|
@ -18,7 +18,7 @@ import pb "github.com/coreos/etcd/raft/raftpb"
|
||||
|
||||
// ReadState provides state for read only query.
|
||||
// It's caller's responsibility to call ReadIndex first before getting
|
||||
// this state from ready, It's also caller's duty to differentiate if this
|
||||
// this state from ready, it's also caller's duty to differentiate if this
|
||||
// state is what it requests through RequestCtx, eg. given a unique id as
|
||||
// RequestCtx
|
||||
type ReadState struct {
|
||||
|
Loading…
x
Reference in New Issue
Block a user