diff options
author | Aki <please@ignore.pl> | 2021-05-14 20:13:31 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2021-05-14 20:13:31 +0200 |
commit | ebfa9e1a72b10f15ff30329bf31697eaeb71ad5e (patch) | |
tree | 5254f3c74311e93e628aff975981313c40cf7405 /storage.go | |
parent | f49a11e686addcd8e3ce5160a0170c7bdb01f4bd (diff) | |
download | field-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.go | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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[:]) |