fix local runtime (#1383)

This commit is contained in:
Asim Aslam 2020-03-19 22:38:37 +00:00 committed by GitHub
parent 4c6f68d537
commit e49be1da42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -184,8 +184,8 @@ func (r *runtime) Create(s *Service, opts ...CreateOption) error {
}
if len(options.Command) == 0 {
options.Command = []string{"go", "run"}
options.Args = []string{"."}
options.Command = []string{"go"}
options.Args = []string{"run", "."}
}
// create new service

View File

@ -72,7 +72,7 @@ func (s *service) shouldStart() bool {
if s.running {
return false
}
return s.maxRetries <= s.retries
return s.retries <= s.maxRetries
}
func (s *service) ShouldStart() bool {