summaryrefslogtreecommitdiff
path: root/script-beta/pub/report.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script-beta/pub/report.lua')
-rw-r--r--script-beta/pub/report.lua26
1 files changed, 0 insertions, 26 deletions
diff --git a/script-beta/pub/report.lua b/script-beta/pub/report.lua
deleted file mode 100644
index 549277e1..00000000
--- a/script-beta/pub/report.lua
+++ /dev/null
@@ -1,26 +0,0 @@
-local pub = require 'pub.pub'
-local await = require 'await'
-
-pub.on('log', function (params, brave)
- log.raw(brave.id, params.level, params.msg, params.src, params.line, params.clock)
-end)
-
-pub.on('mem', function (count, brave)
- brave.memory = count
-end)
-
-pub.on('proto', function (params)
- local proto = require 'proto'
- await.call(function ()
- if params.method then
- proto.doMethod(params)
- else
- proto.doResponse(params)
- end
- end)
-end)
-
-pub.on('protoerror', function (err)
- log.warn('Load proto error:', err)
- os.exit(true)
-end)