From b1b0aac6430020e80a809de7d62197dc0e22053f Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Tue, 3 Aug 2021 09:57:22 +0200 Subject: [PATCH] kvdb+lncfg: fix some typos in comments --- kvdb/etcd/db.go | 4 ++-- lncfg/db.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kvdb/etcd/db.go b/kvdb/etcd/db.go index 3d5b9cc7f..e3bad3b25 100644 --- a/kvdb/etcd/db.go +++ b/kvdb/etcd/db.go @@ -132,7 +132,7 @@ type db struct { var _ walletdb.DB = (*db)(nil) // newEtcdBackend returns a db object initialized with the passed backend -// config. If etcd connection cannot be estabished, then returns error. +// config. If etcd connection cannot be established, then returns error. func newEtcdBackend(ctx context.Context, cfg Config) (*db, error) { clientCfg := clientv3.Config{ Context: ctx, @@ -182,7 +182,7 @@ func newEtcdBackend(ctx context.Context, cfg Config) (*db, error) { return backend, nil } -// getSTMOptions creats all STM options based on the backend config. +// getSTMOptions creates all STM options based on the backend config. func (db *db) getSTMOptions() []STMOptionFunc { opts := []STMOptionFunc{ WithAbortContext(db.ctx), diff --git a/lncfg/db.go b/lncfg/db.go index 8e9ebaf80..d8f2471ea 100644 --- a/lncfg/db.go +++ b/lncfg/db.go @@ -27,7 +27,7 @@ type DB struct { Bolt *kvdb.BoltConfig `group:"bolt" namespace:"bolt" description:"Bolt settings."` } -// NewDB creates and returns a new default DB config. +// DefaultDB creates and returns a new default DB config. func DefaultDB() *DB { return &DB{ Backend: BoltBackend,