diff options
Diffstat (limited to 'server-beta')
-rw-r--r-- | server-beta/src/proto/init.lua | 8 | ||||
-rw-r--r-- | server-beta/src/proto/proto.lua (renamed from server-beta/src/service/proto.lua) | 0 | ||||
-rw-r--r-- | server-beta/src/service/init.lua | 6 | ||||
-rw-r--r-- | server-beta/src/service/service.lua | 2 |
4 files changed, 9 insertions, 7 deletions
diff --git a/server-beta/src/proto/init.lua b/server-beta/src/proto/init.lua new file mode 100644 index 00000000..5c73dd7e --- /dev/null +++ b/server-beta/src/proto/init.lua @@ -0,0 +1,8 @@ +local proto = require 'proto.proto' +local util = require 'utility' + +proto.on('initialize', function (params) + log.debug(util.dump(params)) +end) + +return proto diff --git a/server-beta/src/service/proto.lua b/server-beta/src/proto/proto.lua index d35d76ba..d35d76ba 100644 --- a/server-beta/src/service/proto.lua +++ b/server-beta/src/proto/proto.lua diff --git a/server-beta/src/service/init.lua b/server-beta/src/service/init.lua index d5a45b19..eb0bd057 100644 --- a/server-beta/src/service/init.lua +++ b/server-beta/src/service/init.lua @@ -1,9 +1,3 @@ local service = require 'service.service' -local proto = require 'service.proto' -local util = require 'utility' - -proto.on('initialize', function (params) - log.debug(util.dump(params)) -end) return service diff --git a/server-beta/src/service/service.lua b/server-beta/src/service/service.lua index 2f7e31b8..3712b7b8 100644 --- a/server-beta/src/service/service.lua +++ b/server-beta/src/service/service.lua @@ -2,7 +2,7 @@ local pub = require 'pub' local thread = require 'bee.thread' local task = require 'task' local timer = require 'timer' -local proto = require 'service.proto' +local proto = require 'proto' local m = {} m.type = 'service' |