diff options
| author | Jeff Carr <[email protected]> | 2025-08-28 19:28:13 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-08-28 19:30:59 -0500 |
| commit | a94208a768942cce7b5fce94ecadbbfa67119473 (patch) | |
| tree | 44d3a27780b5269c0c97cab1e780fb592223304d /http.go | |
| parent | 9025bf436a22a4209f1df477aee006cfaa96b270 (diff) | |
Diffstat (limited to 'http.go')
| -rw-r--r-- | http.go | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -5,7 +5,9 @@ import ( "io/ioutil" "net/http" "strings" + "time" + "go.wit.com/lib/gui/shell" "go.wit.com/log" ) @@ -84,7 +86,17 @@ func okHandler(w http.ResponseWriter, r *http.Request) { } if route == "/GetPatchsets" { - doSendPatchsets(w) + data, err := me.forge.Patchsets.Marshal() + if err != nil { + log.Info("patchsets.Marshal() to wire failed", err) + return + } + + start := time.Now() + log.Info("going to w.Write(data) with len", len(data)) + w.Write(data) + age := shell.FormatDuration(time.Since(start)) + log.Printf("Done with xfer in (%s). happy hacking!\n", age) return } |
