Skip to content

Commit

Permalink
fix PR
Browse files Browse the repository at this point in the history
  • Loading branch information
kingluo committed May 10, 2023
1 parent a51786c commit 0dda992
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apisix/core/config_etcd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,9 @@ local function sync_data(self)
return nil, "missing 'key' arguments"
end

init_watch_ctx(self.key)
if not local_conf.etcd.use_grpc then
init_watch_ctx(self.key)
end

if self.need_reload then
flush_watching_streams(self)
Expand Down

0 comments on commit 0dda992

Please sign in to comment.