Skip to content

Commit

Permalink
go fmt this file
Browse files Browse the repository at this point in the history
  • Loading branch information
catsby committed Nov 3, 2015
1 parent fd5be4d commit 1870f9b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions nomad/structs/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ import (
)

var (
ErrNoLeader = fmt.Errorf("No cluster leader")
ErrNoRegionPath = fmt.Errorf("No path to region")
defaultServiceJobRestartPolicy = RestartPolicy{
Delay: 15 * time.Second,
Attempts: 2,
Interval: 1 * time.Minute,
}
ErrNoLeader = fmt.Errorf("No cluster leader")
ErrNoRegionPath = fmt.Errorf("No path to region")
defaultServiceJobRestartPolicy = RestartPolicy{
Delay: 15 * time.Second,
Attempts: 2,
Interval: 1 * time.Minute,
}
defaultBatchJobRestartPolicy = RestartPolicy{
Delay: 15 * time.Second,
Attempts: 15,
}
Delay: 15 * time.Second,
Attempts: 15,
}
)

type MessageType uint8
Expand Down Expand Up @@ -928,7 +928,7 @@ func NewRestartPolicy(jobType string) *RestartPolicy {
rp := defaultServiceJobRestartPolicy
return &rp
case JobTypeBatch:
rp := defaultBatchJobRestartPolicy
rp := defaultBatchJobRestartPolicy
return &rp
}
return nil
Expand Down

0 comments on commit 1870f9b

Please sign in to comment.