From a5a735406145b105d9e0e702c91aaaa68a0240e5 Mon Sep 17 00:00:00 2001 From: Alexey Date: Thu, 31 Jul 2025 20:56:25 +0300 Subject: [PATCH] add a small reminder --- internal/server/sv1/lua_handler.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/server/sv1/lua_handler.go b/internal/server/sv1/lua_handler.go index 2494184..d2ed5f2 100644 --- a/internal/server/sv1/lua_handler.go +++ b/internal/server/sv1/lua_handler.go @@ -27,6 +27,13 @@ func addInitiatorHeaders(req *http.Request, headers http.Header) { headers.Set("X-Initiator-Referer", req.Referer()) } +// A small reminder: this code is only at the MVP stage, +// and some parts of the code may cause shock from the +// incompetence of the developer. But, in the end, +// this code is just an idea. If there is a desire to +// contribute to the development of the code, +// I will be only glad. +// TODO: make this huge function more harmonious by dividing responsibilities func (h *HandlerV1) handleLUA(r *http.Request, req *rpc.RPCRequest, path string) *rpc.RPCResponse { L := lua.NewState() defer L.Close()