fix(cli): correct const qualifier in jupyter lifecycle
Fixed compilation error in jupyter/lifecycle.zig: - Changed 'const client' to 'var client' in ConnectionCtx.init() - Allows errdefer client.close() to work correctly - close() requires mutable reference to ws.Client All tests pass.
This commit is contained in:
parent
cb018934e1
commit
3e557e4565
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ const ConnectionCtx = struct {
|
|||
const ws_url = try config.getWebSocketUrl(allocator);
|
||||
errdefer allocator.free(ws_url);
|
||||
|
||||
const client = try ws.Client.connect(allocator, ws_url, config.api_key);
|
||||
var client = try ws.Client.connect(allocator, ws_url, config.api_key);
|
||||
errdefer client.close();
|
||||
|
||||
const api_key_hash = try crypto.hashApiKey(allocator, config.api_key);
|
||||
|
|
|
|||
Loading…
Reference in a new issue