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:
parent
cdb7308a23
commit
01df5ce456
1 changed files with 5 additions and 0 deletions
|
@ -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,
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue