浏览代码

fix: Set UserService to default(false) (#42)

jeessy2 3 年之前
父节点
当前提交
cf9479f110
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      main.go

+ 2 - 3
main.go

@@ -107,8 +107,8 @@ func (p *program) Start(s service.Service) error {
 	return nil
 }
 func (p *program) run() {
-	// 服务运行,延时10秒运行,等待网络
-	run(10 * time.Second)
+	// 服务运行,延时20秒运行,等待网络
+	run(20 * time.Second)
 }
 func (p *program) Stop(s service.Service) error {
 	// Stop should not block. Return with a few seconds.
@@ -117,7 +117,6 @@ func (p *program) Stop(s service.Service) error {
 
 func getService() service.Service {
 	options := make(service.KeyValue)
-	options["UserService"] = true
 	svcConfig := &service.Config{
 		Name:        "backup-x",
 		DisplayName: "backup-x",