config 중복 수정
This commit is contained in:
@ -4,7 +4,6 @@ import (
|
||||
"crypto/md5"
|
||||
"encoding/hex"
|
||||
"errors"
|
||||
"flag"
|
||||
"fmt"
|
||||
"io"
|
||||
"os"
|
||||
@ -17,6 +16,7 @@ import (
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"repositories.action2quare.com/ayo/gocommon"
|
||||
"repositories.action2quare.com/ayo/gocommon/logger"
|
||||
|
||||
"go.mongodb.org/mongo-driver/bson"
|
||||
@ -54,12 +54,6 @@ type HoustonStatReport struct {
|
||||
PlayingSessions int `json:"sessions"`
|
||||
}
|
||||
|
||||
var prefetchptr = flag.Bool("prefetch", false, "")
|
||||
|
||||
func NeedPrefetch() bool {
|
||||
return *prefetchptr
|
||||
}
|
||||
|
||||
var ErrUpdateUnnecessary = errors.New("binary is already latest")
|
||||
|
||||
func SelfUpdateUsingScript(replycache *MessageReplyCache, graph *Graph, patchroot string, force bool) (err error) {
|
||||
@ -202,8 +196,6 @@ func SelfUpdateUsingScript(replycache *MessageReplyCache, graph *Graph, patchroo
|
||||
return
|
||||
}
|
||||
|
||||
var linkupdate = flag.String("updatelink", "", "")
|
||||
|
||||
func ReplyUpdateComplete() {
|
||||
defer func() {
|
||||
r := recover()
|
||||
@ -212,10 +204,10 @@ func ReplyUpdateComplete() {
|
||||
}
|
||||
}()
|
||||
|
||||
if len(*linkupdate) > 0 {
|
||||
cache := DeserializeMessageReplyCache(*linkupdate)
|
||||
if len(*gocommon.Linkupdate) > 0 {
|
||||
cache := DeserializeMessageReplyCache(*gocommon.Linkupdate)
|
||||
if cache != nil {
|
||||
os.Remove(*linkupdate)
|
||||
os.Remove(*gocommon.Linkupdate)
|
||||
if cache.ReplyWrap != nil {
|
||||
cache.ReplyWrap.Update(cache.Replyaid, "업데이트 완료")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user