"github.com/jhalter/mobius/hotline"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
+ "math/rand"
"os"
+ "time"
)
const (
)
func main() {
+ rand.Seed(time.Now().UnixNano())
+
ctx, cancelRoot := context.WithCancel(context.Background())
basePort := flag.Int("bind", defaultPort, "Bind address and port")
logger.Fatalw("Configuration directory not found", "path", configDir)
}
- hotline.FS = hotline.OSFileStore{}
+ hotline.FS = &hotline.OSFileStore{}
srv, err := hotline.NewServer(*configDir, "", *basePort, logger)
if err != nil {