mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-19 13:17:50 +02:00
cmd+loopd: new cmd/loopd main method replacing the one now in ./loopd
This allows loopd to be used as a library by importing it and calling Start.
This commit is contained in:
parent
644b5b16f7
commit
704bfff8f6
2 changed files with 15 additions and 8 deletions
|
|
@ -26,14 +26,7 @@ var (
|
|||
swapsLock sync.Mutex
|
||||
)
|
||||
|
||||
func main() {
|
||||
err := start()
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
}
|
||||
|
||||
func start() error {
|
||||
func Start() error {
|
||||
config := defaultConfig
|
||||
|
||||
// Parse command line flags.
|
||||
Loading…
Add table
Add a link
Reference in a new issue