mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-17 04:11:42 +02:00
kvdb+lncfg: fix some typos in comments
This commit is contained in:
parent
44971f0c46
commit
b1b0aac643
@ -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),
|
||||||
|
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user