You've already forked hastebin-ansi
mirror of
https://github.com/armbian/hastebin-ansi.git
synced 2026-01-06 12:30:55 -08:00
handler: add unit tests and benchmarks for document handler
This commit is contained in:
committed by
M. Efe Çetin
parent
b5ee197ac7
commit
dcd271438e
@@ -97,7 +97,6 @@ func (h *DocumentHandler) HandlePost(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
key := h.KeyGenerator.Generate(h.KeyLength)
|
||||
fmt.Println(key)
|
||||
h.Store.Set(key, buffer.String(), false)
|
||||
|
||||
logrus.WithField("key", key).Info("Added document")
|
||||
|
||||
Reference in New Issue
Block a user