You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2021/02/09 03:04:33 UTC
[skywalking-nginx-lua] branch master updated: Fix destroy spelling
(#63)
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-nginx-lua.git
The following commit(s) were added to refs/heads/master by this push:
new 723a025 Fix destroy spelling (#63)
723a025 is described below
commit 723a025864be1c5c7dcf87179b464f88b345cd7f
Author: renzheng.wang <wa...@gmail.com>
AuthorDate: Tue Feb 9 11:04:26 2021 +0800
Fix destroy spelling (#63)
---
lib/skywalking/client.lua | 2 +-
t/client.t | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/skywalking/client.lua b/lib/skywalking/client.lua
index 9efaa43..783cf64 100644
--- a/lib/skywalking/client.lua
+++ b/lib/skywalking/client.lua
@@ -67,7 +67,7 @@ function Client:startBackendTimer(backend_http_uri)
end
-- Stop the tracing report timer and clean unreported data
-function Client:destoryBackendTimer()
+function Client:destroyBackendTimer()
self.stopped = true
local metadata_buffer = ngx.shared.tracing_buffer
diff --git a/t/client.t b/t/client.t
index 1321f46..172d16d 100644
--- a/t/client.t
+++ b/t/client.t
@@ -77,14 +77,14 @@ Go keepAlive
-=== TEST 2: destory backend timer
+=== TEST 2: destroy backend timer
--- config
location /t {
content_by_lua_block {
local client = require("skywalking.client")
client.backendTimerDelay = 0.01
client:startBackendTimer("http://127.0.0.1:" .. ngx.var.server_port)
- local ok, err = client:destoryBackendTimer()
+ local ok, err = client:destroyBackendTimer()
ngx.sleep(0.02)
if not err then
ngx.say(ok)