Explorar el Código

Revert "Use the cache"

This reverts commit 77c8ac593c8f315e63c130b90374ab3f8cf17d9d.

We don't need this yet, it's better to fix the underlying performance
issues first.
Lucas Stadler %!s(int64=8) %!d(string=hace) años
padre
commit
03bddef23f
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      quit.go

+ 1 - 2
quit.go

39
		log.Fatal("opening repository: ", err)
39
		log.Fatal("opening repository: ", err)
40
	}
40
	}
41
41
42
	fancyRepo := NewFancyRepo(repo)
43
	http.HandleFunc("/", func(w http.ResponseWriter, req *http.Request) {
42
	http.HandleFunc("/", func(w http.ResponseWriter, req *http.Request) {
44
		performance.MeasureRequest(req)
43
		performance.MeasureRequest(req)
45
44
47
		start := time.Now()
46
		start := time.Now()
48
		err = repoTmpl.Execute(buf, map[string]interface{}{
47
		err = repoTmpl.Execute(buf, map[string]interface{}{
49
			"RepoPath":    path.Base(repoPath),
48
			"RepoPath":    path.Base(repoPath),
50
			"Repo":        fancyRepo,
49
			"Repo":        NewFancyRepo(repo),
51
			"Style":       template.CSS(repoStyle),
50
			"Style":       template.CSS(repoStyle),
52
			"Performance": performance.Render(req),
51
			"Performance": performance.Render(req),
53
		})
52
		})