1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2025-10-20 23:24:09 +00:00

more endpoint comments

This commit is contained in:
Rene Schallner 2023-01-20 20:41:54 +01:00
parent cdb7308a23
commit 01df5ce456

View file

@ -39,6 +39,11 @@ pub fn main() !void {
// and run
zap.start(.{
.threads = 2000,
// IMPORTANT! It is crucial to only have a single worker for this example to work!
// Multiple workers would have multiple copies of the users hashmap.
//
// Since zap is quite fast, you can do A LOT with a single worker.
// Try it with `zig build run-endpoint -Drelease-fast`
.workers = 1,
});
}