Skip to content

Commit

Permalink
Merge branch 'antonputra:main' into go-automaxprocs
Browse files Browse the repository at this point in the history
  • Loading branch information
cookieo9 authored Sep 18, 2024
2 parents 268e830 + ad97d93 commit 1ffc367
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lessons/203/rust-app-v2/src/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl Image {
// Prepare the SQL query.
let query = "INSERT INTO rust_image VALUES ($1, $2, $3)";
let stmt = client
.prepare(query)
.prepare_cached(query)
.await
.context("failed to prepare query")?;

Expand Down
3 changes: 2 additions & 1 deletion lessons/208/http.zig/src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ pub fn main() !void {
.address = "0.0.0.0",
.port = port,
.workers = .{
.count = 2,
.large_buffer_count = 1,
.large_buffer_size = 1024,
},
.thread_pool = .{
.count = 1,
.count = 2,
.buffer_size = 1024,
},
.request = .{
Expand Down
2 changes: 1 addition & 1 deletion lessons/208/zap-app/src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ pub fn main() !void {

zap.start(.{
.threads = 2,
.workers = 1,
.workers = 2,
});
}

0 comments on commit 1ffc367

Please sign in to comment.