Skip to content

Commit 74b3580

Browse files
committed
loopd+cmd/loopd: rename main Start function to Run
1 parent 774a44f commit 74b3580

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cmd/loopd/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
func main() {
1010
cfg := loopd.RPCConfig{}
11-
err := loopd.Start(cfg)
11+
err := loopd.Run(cfg)
1212
if err != nil {
1313
fmt.Printf("loopd exited with an error: %v\n", err)
1414
}

loopd/start.go renamed to loopd/run.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ func newListenerCfg(config *Config, rpcCfg RPCConfig) *listenerCfg {
9292
}
9393
}
9494

95-
func Start(rpcCfg RPCConfig) error {
95+
// Run starts the loop daemon and blocks until it's shut down again.
96+
func Run(rpcCfg RPCConfig) error {
9697
config := DefaultConfig()
9798

9899
// Parse command line flags.

0 commit comments

Comments
 (0)