kvdb+lncfg: fix some typos in comments

This commit is contained in:
Oliver Gugger 2021-08-03 09:57:22 +02:00
parent 44971f0c46
commit b1b0aac643
No known key found for this signature in database
GPG Key ID: 8E4256593F177720
2 changed files with 3 additions and 3 deletions

View File

@ -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),

View File

@ -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,