From cde8f75d68106006406704252e5d7cbd0bfc398e Mon Sep 17 00:00:00 2001 From: iamwlj Date: Mon, 18 Mar 2024 22:54:39 +0800 Subject: [PATCH] Update bootstrap.lua (#1891) 1. local var `harbor' not used 2. ` local skynet = require "skynet" require "skynet.manager" ` can be simplified as `local skynet = require "skynet.manager"` --- service/bootstrap.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/service/bootstrap.lua b/service/bootstrap.lua index 02d19dd0..9d762f1c 100644 --- a/service/bootstrap.lua +++ b/service/bootstrap.lua @@ -1,7 +1,5 @@ -local skynet = require "skynet" -local harbor = require "skynet.harbor" local service = require "skynet.service" -require "skynet.manager" -- import skynet.launch, ... +local skynet = require "skynet.manager" -- import skynet.launch, ... skynet.start(function() local standalone = skynet.getenv "standalone"