mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Faster versioning
Former-commit-id: d80c1032ce3dc8993462541c9bcd90ca398dee46 [formerly 5ec203daf119ed6c9c650a873b92261e1ea761b9] [formerly ba62eec543abdb92f570c98a32b1771077896105 [formerly cb5287d765da840571488263d1300789b6d83541 [formerlyc8d3eb96fb
]]] Former-commit-id: 89d468e729a05884fa75cba013c8118eb390c1e2 [formerly 90cf951ecdc5734a6389270dc4fb36d521a26aa0] Former-commit-id: b4a543369916d4fe6cf179c62a8fffb513480568 Former-commit-id:a33b2a1e06
This commit is contained in:
parent
9b3993f477
commit
f2751c6bb4
2
utils.go
2
utils.go
@ -114,7 +114,7 @@ func timeTrack(start time.Time, name string) {
|
||||
}
|
||||
|
||||
func getImportantVersions(p WikiData) []versionsInfo {
|
||||
defer timeTrack(time.Now(), "getImportantVersions")
|
||||
// defer timeTrack(time.Now(), "getImportantVersions")
|
||||
m := map[int]int{}
|
||||
lastTime := time.Now().AddDate(0, -1, 0)
|
||||
for i, _ := range p.Diffs {
|
||||
|
Loading…
Reference in New Issue
Block a user