summaryrefslogtreecommitdiffstats
path: root/model/utils.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-09-16 17:37:11 -0700
committer=Corey Hulen <corey@hulen.com>2015-09-16 17:37:11 -0700
commitcef7a1aae4205ebf4fbd8958f1f870ff69759edf (patch)
treea3bbd45979a89f9a4030f750b1a30099d7e565b9 /model/utils.go
parente644b53b72d346539f5c58cc0cb0a07c4054cbcb (diff)
downloadchat-cef7a1aae4205ebf4fbd8958f1f870ff69759edf.tar.gz
chat-cef7a1aae4205ebf4fbd8958f1f870ff69759edf.tar.bz2
chat-cef7a1aae4205ebf4fbd8958f1f870ff69759edf.zip
PLT-92 Adding server side versioning to the binary
Diffstat (limited to 'model/utils.go')
-rw-r--r--model/utils.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/model/utils.go b/model/utils.go
index 04b92947b..ee94cafc3 100644
--- a/model/utils.go
+++ b/model/utils.go
@@ -16,11 +16,6 @@ import (
"time"
)
-const (
- // Also change web/react/stores/browser_store.jsx BROWSER_STORE_VERSION
- ETAG_ROOT_VERSION = "12"
-)
-
type StringMap map[string]string
type StringArray []string
type EncryptStringMap map[string]string
@@ -235,7 +230,7 @@ func IsValidAlphaNum(s string, allowUnderscores bool) bool {
func Etag(parts ...interface{}) string {
- etag := ETAG_ROOT_VERSION
+ etag := GetFullVersion()
for _, part := range parts {
etag += fmt.Sprintf(".%v", part)