Skip to content

Commit

Permalink
Rename version to daemonVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
bobheadxi committed Mar 6, 2018
1 parent bcdd34e commit 1f055c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions daemon/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ const (
defaultSecret = "inertia"
)

// version indicates the daemon's corresponding Inertia version
var version string
// daemonVersion indicates the daemon's corresponding Inertia daemonVersion
var daemonVersion string

// Run starts the daemon
func Run(port, version string) {
version = version
daemonVersion = version

// Download docker-compose image
println("Downloading docker-compose...")
Expand Down Expand Up @@ -205,7 +205,7 @@ func downHandler(w http.ResponseWriter, r *http.Request) {
func statusHandler(w http.ResponseWriter, r *http.Request) {
println("STATUS request received")

inertiaStatus := "Inertia daemon " + version + "\n"
inertiaStatus := "Inertia daemon " + daemonVersion + "\n"

// Get status of repository
repo, err := git.PlainOpen(projectDirectory)
Expand Down

0 comments on commit 1f055c7

Please sign in to comment.