diff --git a/csgo/demo_loader.go b/csgo/demo_loader.go index a0dfc2c..356e3c5 100644 --- a/csgo/demo_loader.go +++ b/csgo/demo_loader.go @@ -16,7 +16,6 @@ import ( "google.golang.org/protobuf/proto" "io/ioutil" "os" - "strconv" "strings" "sync" "time" @@ -432,7 +431,7 @@ func (dml *DemoMatchLoader) handleDemo(demo *Demo, apiKey string, rl *rate.Limit demo.Url = lastRound.GetMap() demo.MatchId = matchZero.GetMatchid() - demo.DecryptionKey = []byte(strings.ToUpper(strconv.FormatUint(matchZero.GetWatchablematchinfo().GetClDecryptdataKeyPub(), 16))) + demo.DecryptionKey = []byte(strings.ToUpper(fmt.Sprintf("%016x", matchZero.GetWatchablematchinfo().GetClDecryptdataKeyPub()))) tMatch, err := dml.db.Match.Create(). SetID(matchZero.GetMatchid()).