Skip to content

Commit

Permalink
use new array conversion method
Browse files Browse the repository at this point in the history
  • Loading branch information
morphy2k committed Mar 16, 2023
1 parent b0d450c commit 47aa616
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions model/tile.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"fmt"
"net/url"
"time"
"unsafe"

"github.com/tarkov-database/tileserver/core/mbtiles"

Expand Down Expand Up @@ -129,7 +128,7 @@ func GetTile(id, z, x, y string) (*Tile, error) {
Data: data,
Format: ts.Format,
Modified: ts.Timestamp,
Hash: *(*[32]byte)(unsafe.Pointer(&sum[0])),
Hash: [32]byte(sum),
}

return tile, nil
Expand Down

0 comments on commit 47aa616

Please sign in to comment.