Skip to content

Commit

Permalink
fix: typo mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmoysrt committed Mar 30, 2024
1 parent 0b00003 commit 65b6e54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ After=network.target
[Service]
Type=simple
ExecStart=/bin/swiftwave_stats_ninja run
ExecStart=/usr/bin/swiftwave_stats_ninja run
Environment="SWIFTWAVE_STATS_NINJA_ENDPOINT={{.Endpoint}}" "SWIFTWAVE_STATS_NINJA_AUTH_TOKEN={{.AuthToken}}"
Restart=on-failure
RestartSec=10
Expand All @@ -49,7 +49,7 @@ func main() {
endpointFlag := os.Getenv("SWIFTWAVE_STATS_NINJA_ENDPOINT")
authToken := os.Getenv("SWIFTWAVE_STATS_NINJA_AUTH_TOKEN")
if endpointFlag == "" || authToken == "" {
fmt.Println("Provide SWIFTWAVE_STATS_NINJA_ENDPOINT and SWIFTWAVE_STATS_NINJA_AUTH as environment variables")
fmt.Println("Provide SWIFTWAVE_STATS_NINJA_ENDPOINT and SWIFTWAVE_STATS_NINJA_AUTH_TOKEN as environment variables")
os.Exit(1)
}
// run the stats_ninja
Expand All @@ -63,7 +63,7 @@ func main() {
authToken = args[2]
enable(endpointFlag, authToken)
} else {
fmt.Println("Usage: swiftwave-stats-ninja run <submission_endpoint> <auth_token>")
fmt.Println("Usage: swiftwave-stats-ninja enable <submission_endpoint> <auth_token>")
}
} else if len(args) > 0 && args[0] == "disable" {
// disable cmd
Expand Down

0 comments on commit 65b6e54

Please sign in to comment.