forked from nyaruka/rp-archiver
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'v7.1.0' of https://github.com/nyaruka/rp-archiver into upd…
…ate/v7.1.0 * Remove msgs_msg.response_to_id
- Loading branch information
Showing
5 changed files
with
57 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
v7.1.0 | ||
---------- | ||
* Remove msgs_msg.response_to_id | ||
|
||
v7.0.0 | ||
---------- | ||
* Test on PG12 and 13 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package archives | ||
|
||
// chunks a slice of in64 IDs | ||
func chunkIDs(ids []int64, size int) [][]int64 { | ||
chunks := make([][]int64, 0, len(ids)/size+1) | ||
|
||
for i := 0; i < len(ids); i += size { | ||
end := i + size | ||
if end > len(ids) { | ||
end = len(ids) | ||
} | ||
chunks = append(chunks, ids[i:end]) | ||
} | ||
return chunks | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters