# HG changeset patch # User Kim Alvefur # Date 1443194460 -7200 # Node ID a2cc477eb19b8a484bfed3dcba1eb5780d24d219 # Parent 626d8152b1ad833f5a10de74cd93bbf39b023e5d server_event: Rename luaevent module variable to avoid name clash [luacheck] diff -r 626d8152b1ad -r a2cc477eb19b net/server_event.lua --- a/net/server_event.lua Fri Sep 25 17:25:46 2015 +0200 +++ b/net/server_event.lua Fri Sep 25 17:21:00 2015 +0200 @@ -48,7 +48,7 @@ local has_luasec, ssl = pcall ( require , "ssl" ) local socket = require "socket" -local event = require "luaevent.core" +local levent = require "luaevent.core" local socket_gettime = socket.gettime local getaddrinfo = socket.dns.getaddrinfo @@ -78,12 +78,12 @@ end end )( ) -local base = event.new( ) +local base = levent.new( ) local addevent = base.addevent -local EV_READ = event.EV_READ -local EV_WRITE = event.EV_WRITE -local EV_TIMEOUT = event.EV_TIMEOUT -local EV_SIGNAL = event.EV_SIGNAL +local EV_READ = levent.EV_READ +local EV_WRITE = levent.EV_WRITE +local EV_TIMEOUT = levent.EV_TIMEOUT +local EV_SIGNAL = levent.EV_SIGNAL local EV_READWRITE = bitor( EV_READ, EV_WRITE ) @@ -803,7 +803,7 @@ base = base, loop = loop, link = link, - event = event, + event = levent, event_base = base, addevent = newevent, addserver = addserver,