mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
typo fix
This commit is contained in:
@@ -16,7 +16,7 @@ struct snlua {
|
|||||||
const char * preload;
|
const char * preload;
|
||||||
};
|
};
|
||||||
|
|
||||||
static int
|
static int
|
||||||
traceback (lua_State *L) {
|
traceback (lua_State *L) {
|
||||||
const char *msg = lua_tostring(L, 1);
|
const char *msg = lua_tostring(L, 1);
|
||||||
if (msg)
|
if (msg)
|
||||||
@@ -191,7 +191,7 @@ _send(lua_State *L) {
|
|||||||
}
|
}
|
||||||
if (session < 0) {
|
if (session < 0) {
|
||||||
// send to invalid address
|
// send to invalid address
|
||||||
// todo: maybe throw error whould be better
|
// todo: maybe throw an error would be better
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
lua_pushinteger(L,session);
|
lua_pushinteger(L,session);
|
||||||
@@ -304,7 +304,7 @@ ltrash(lua_State *L) {
|
|||||||
int
|
int
|
||||||
luaopen_skynet_core(lua_State *L) {
|
luaopen_skynet_core(lua_State *L) {
|
||||||
luaL_checkversion(L);
|
luaL_checkversion(L);
|
||||||
|
|
||||||
luaL_Reg l[] = {
|
luaL_Reg l[] = {
|
||||||
{ "send" , _send },
|
{ "send" , _send },
|
||||||
{ "genid", _genid },
|
{ "genid", _genid },
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ local skynet = {
|
|||||||
PTYPE_HARBOR = 5,
|
PTYPE_HARBOR = 5,
|
||||||
PTYPE_SOCKET = 6,
|
PTYPE_SOCKET = 6,
|
||||||
PTYPE_ERROR = 7,
|
PTYPE_ERROR = 7,
|
||||||
PTYPE_QUEUE = 8, -- use in deprecated mqueue, use skynet.queue instead
|
PTYPE_QUEUE = 8, -- used in deprecated mqueue, use skynet.queue instead
|
||||||
PTYPE_DEBUG = 9,
|
PTYPE_DEBUG = 9,
|
||||||
PTYPE_LUA = 10,
|
PTYPE_LUA = 10,
|
||||||
PTYPE_SNAX = 11,
|
PTYPE_SNAX = 11,
|
||||||
|
|||||||
Reference in New Issue
Block a user