File tree Expand file tree Collapse file tree 1 file changed +19
-15
lines changed
Expand file tree Collapse file tree 1 file changed +19
-15
lines changed Original file line number Diff line number Diff line change @@ -123,21 +123,6 @@ function _M.new(config)
123123end
124124
125125
126- function _M .set_connect_timeout (self , timeout )
127- self .config .connect_timeout = timeout
128- end
129-
130-
131- function _M .set_read_timeout (self , timeout )
132- self .config .read_timeout = timeout
133- end
134-
135-
136- function _M .set_connection_options (self , options )
137- self .config .connection_options = options
138- end
139-
140-
141126local function parse_dsn (params )
142127 local url = params .url
143128 if url and url ~= " " then
330315_M .set_keepalive = set_keepalive
331316
332317
318+
319+ -- Deprecated: use config table in new() or connect() instead.
320+ function _M .set_connect_timeout (self , timeout )
321+ self .config .connect_timeout = timeout
322+ end
323+
324+
325+ -- Deprecated: use config table in new() or connect() instead.
326+ function _M .set_read_timeout (self , timeout )
327+ self .config .read_timeout = timeout
328+ end
329+
330+
331+ -- Deprecated: use config table in new() or connect() instead.
332+ function _M .set_connection_options (self , options )
333+ self .config .connection_options = options
334+ end
335+
336+
333337return setmetatable (_M , fixed_field_metatable )
You can’t perform that action at this time.
0 commit comments