Skip to content

Commit 406dfc2

Browse files
committed
Fix incorrect indexing while populating hashes
1 parent 5d7ec0e commit 406dfc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

database/hash.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ func HashInit(pool *pgxpool.Pool, ctx context.Context) error {
6565
versions = temp
6666
}
6767

68-
regions, exists := versions[packID]
68+
regions, exists := versions[version]
6969

7070
if !exists {
7171
temp := map[Region]string{}
72-
versions[packID] = temp
72+
versions[version] = temp
7373
regions = temp
7474
}
7575

0 commit comments

Comments
 (0)