Merge pull request #1622 from cfromknecht/hide-hodl-config-production
Hide hodl config production
This commit is contained in:
commit
098cd940e3
@ -1,3 +1,5 @@
|
||||
// +build debug
|
||||
|
||||
package hodl
|
||||
|
||||
// Config is a struct enumerating the possible command line flags that are used
|
11
htlcswitch/hodl/config_production.go
Normal file
11
htlcswitch/hodl/config_production.go
Normal file
@ -0,0 +1,11 @@
|
||||
// +build !debug
|
||||
|
||||
package hodl
|
||||
|
||||
// Config is an empty struct disabling command line hodl flags in production.
|
||||
type Config struct{}
|
||||
|
||||
// Mask in production always returns MaskNone.
|
||||
func (c *Config) Mask() Mask {
|
||||
return MaskNone
|
||||
}
|
Loading…
Reference in New Issue
Block a user