Fix some typos in comment

Signed-off-by: zhoulin xie <zhoulin.xie@daocloud.io>
This commit is contained in:
zhoulin xie 2019-01-17 15:50:46 +08:00
parent e98e307f3f
commit ae1b7ac4fd
2 changed files with 2 additions and 2 deletions

View File

@ -176,7 +176,7 @@ func handleResizing(resize <-chan remotecommand.TerminalSize, resizeFunc func(si
// newTLSCert returns a self CA signed tls.certificate. // newTLSCert returns a self CA signed tls.certificate.
// TODO (mikebrow): replace / rewrite this function to support using CA // TODO (mikebrow): replace / rewrite this function to support using CA
// signing of the cetificate. Requires a security plan for kubernetes regarding // signing of the certificate. Requires a security plan for kubernetes regarding
// CRI connections / streaming, etc. For example, kubernetes could configure or // CRI connections / streaming, etc. For example, kubernetes could configure or
// require a CA service and pass a configuration down through CRI. // require a CA service and pass a configuration down through CRI.
func newTLSCert() (tls.Certificate, error) { func newTLSCert() (tls.Certificate, error) {

View File

@ -28,7 +28,7 @@ import (
type Snapshot struct { type Snapshot struct {
// Key is the key of the snapshot // Key is the key of the snapshot
Key string Key string
// Kind is the kind of the snapshot (active, commited, view) // Kind is the kind of the snapshot (active, committed, view)
Kind snapshot.Kind Kind snapshot.Kind
// Size is the size of the snapshot in bytes. // Size is the size of the snapshot in bytes.
Size uint64 Size uint64