MCPcopy Create free account
hub / github.com/dadgar/onecache / run

Method run

onecache/memcache_handlers.go:563–577  ·  view source on GitHub ↗
(w io.Writer, data []byte)

Source from the content-addressed store, hash-verified

561}
562
563func (h *touchHandler) run(w io.Writer, data []byte) error {
564 var resp struct{}
565 err := h.n.server.Touch(h.args, &resp)
566 if h.noReply {
567 return nil
568 }
569
570 // TODO better error checking
571 if err != nil {
572 return sendMsg(w, "NOT_FOUND")
573 }
574
575 return sendMsg(w, "TOUCHED")
576 return nil
577}

Callers

nothing calls this directly

Calls 2

sendMsgFunction · 0.85
TouchMethod · 0.45

Tested by

no test coverage detected