Skip to content

Commit 95fe041

Browse files
committed
fix code style
1 parent f10b4f3 commit 95fe041

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/ngx_stream_lua_balancer.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ ngx_stream_lua_balancer_by_lua(ngx_conf_t *cf, ngx_command_t *cmd,
168168

169169
lscf->balancer.src_key = p;
170170

171-
p = ngx_copy(p, NGX_STREAM_LUA_INLINE_TAG, NGX_STREAM_LUA_INLINE_TAG_LEN);
171+
p = ngx_copy(p, NGX_STREAM_LUA_INLINE_TAG,
172+
NGX_STREAM_LUA_INLINE_TAG_LEN);
173+
172174
p = ngx_stream_lua_digest_hex(p, value[1].data, value[1].len);
173175
*p = '\0';
174176
}
@@ -215,7 +217,9 @@ ngx_stream_lua_balancer_init_peer(ngx_stream_session_t *s,
215217
ngx_stream_lua_srv_conf_t *bcf;
216218
ngx_stream_lua_balancer_peer_data_t *bp;
217219

218-
bp = ngx_pcalloc(s->connection->pool, sizeof(ngx_stream_lua_balancer_peer_data_t));
220+
bp = ngx_pcalloc(s->connection->pool,
221+
sizeof(ngx_stream_lua_balancer_peer_data_t));
222+
219223
if (bp == NULL) {
220224
return NGX_ERROR;
221225
}
@@ -410,7 +414,7 @@ int
410414
ngx_stream_lua_ffi_balancer_set_current_peer(ngx_stream_session_t *s,
411415
const u_char *addr, size_t addr_len, int port, char **err)
412416
{
413-
ngx_url_t url;
417+
ngx_url_t url;
414418
ngx_stream_lua_ctx_t *ctx;
415419
ngx_stream_upstream_t *u;
416420

0 commit comments

Comments
 (0)