🎨 build version

This commit is contained in:
naiba committed 2020-10-29 11:20:32 +08:00
1 parent 7cd3b28403
commit d201369451
3 files changed
+9 -4

No files matched your search

+6
View File
@@ -28,6 +28,12 @@ var ServerLock sync.RWMutex
// Version ..
var Version = "debug"
func init() {
if len(Version) > 7 {
Version = Version[:7]
}
}
// SendCommand ..
func SendCommand(cmd *pb.Command) {
ServerLock.RLock()