kvdb+lncfg: fix some typos in comments
This commit is contained in:
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -132,7 +132,7 @@ type db struct {
|
|||||||
var _ walletdb.DB = (*db)(nil)
|
var _ walletdb.DB = (*db)(nil)
|
||||||
|
|
||||||
// newEtcdBackend returns a db object initialized with the passed backend
|
// 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) {
|
func newEtcdBackend(ctx context.Context, cfg Config) (*db, error) {
|
||||||
clientCfg := clientv3.Config{
|
clientCfg := clientv3.Config{
|
||||||
Context: ctx,
|
Context: ctx,
|
||||||
@@ -182,7 +182,7 @@ func newEtcdBackend(ctx context.Context, cfg Config) (*db, error) {
|
|||||||
return backend, nil
|
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 {
|
func (db *db) getSTMOptions() []STMOptionFunc {
|
||||||
opts := []STMOptionFunc{
|
opts := []STMOptionFunc{
|
||||||
WithAbortContext(db.ctx),
|
WithAbortContext(db.ctx),
|
||||||
|
|||||||
+1
-1
@@ -27,7 +27,7 @@ type DB struct {
|
|||||||
Bolt *kvdb.BoltConfig `group:"bolt" namespace:"bolt" description:"Bolt settings."`
|
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 {
|
func DefaultDB() *DB {
|
||||||
return &DB{
|
return &DB{
|
||||||
Backend: BoltBackend,
|
Backend: BoltBackend,
|
||||||
|
|||||||
Reference in new issue
Block a user