start refactoring: move daemon into subpackage

This commit is contained in:
Christian Schwarz
2018-08-26 21:58:58 +02:00
parent 428339e1ad
commit 6425c26b1b
10 changed files with 271 additions and 68 deletions
+2 -1
View File
@@ -6,6 +6,7 @@ import (
"github.com/problame/go-netssh"
"net"
"path"
"github.com/zrepl/zrepl/cmd/helpers"
)
type StdinserverListenerFactory struct {
@@ -32,7 +33,7 @@ func parseStdinserverListenerFactory(c JobParsingContext, i map[string]interface
func (f *StdinserverListenerFactory) Listen() (net.Listener, error) {
if err := PreparePrivateSockpath(f.sockpath); err != nil {
if err := helpers.PreparePrivateSockpath(f.sockpath); err != nil {
return nil, err
}