mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Faster versioning
This commit is contained in:
parent
011bbba9eb
commit
c8d3eb96fb
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