summaryrefslogtreecommitdiffhomepage
path: root/storage.go
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2021-05-14 20:13:31 +0200
committerAki <please@ignore.pl>2021-05-14 20:13:31 +0200
commitebfa9e1a72b10f15ff30329bf31697eaeb71ad5e (patch)
tree5254f3c74311e93e628aff975981313c40cf7405 /storage.go
parentf49a11e686addcd8e3ce5160a0170c7bdb01f4bd (diff)
downloadfield-ebfa9e1a72b10f15ff30329bf31697eaeb71ad5e.zip
field-ebfa9e1a72b10f15ff30329bf31697eaeb71ad5e.tar.gz
field-ebfa9e1a72b10f15ff30329bf31697eaeb71ad5e.tar.bz2
Switched to int32 as esi scheme dictates
Diffstat (limited to 'storage.go')
-rw-r--r--storage.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/storage.go b/storage.go
index 738826e..ee3489a 100644
--- a/storage.go
+++ b/storage.go
@@ -6,13 +6,11 @@ import (
"encoding/json"
"errors"
"fmt"
- "io"
"io/ioutil"
"net/http"
"os"
"regexp"
"sort"
- "strconv"
)
type Storage struct {
@@ -45,7 +43,7 @@ func (b *Battle) CalculateHash() {
return killmails[lhs].Id < killmails[rhs].Id
})
for _, km := range killmails {
- io.WriteString(hash, strconv.FormatUint(km.Id, 10))
+ fmt.Fprint(hash, km.Id)
}
sum := hash.Sum(nil)
b.Id = hex.EncodeToString(sum[:])