loopd+cmd/loopd: rename main Start function to Run

This commit is contained in:
Oliver Gugger 2020-05-15 12:18:06 +02:00
parent 774a44fac1
commit 74b3580e01
No known key found for this signature in database
GPG key ID: 8E4256593F177720
2 changed files with 3 additions and 2 deletions

View file

@ -8,7 +8,7 @@ import (
func main() {
cfg := loopd.RPCConfig{}
err := loopd.Start(cfg)
err := loopd.Run(cfg)
if err != nil {
fmt.Printf("loopd exited with an error: %v\n", err)
}

View file

@ -92,7 +92,8 @@ func newListenerCfg(config *Config, rpcCfg RPCConfig) *listenerCfg {
}
}
func Start(rpcCfg RPCConfig) error {
// Run starts the loop daemon and blocks until it's shut down again.
func Run(rpcCfg RPCConfig) error {
config := DefaultConfig()
// Parse command line flags.