mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 22:34:02 +03:00
Add documentation for antireplay package
This commit is contained in:
+7
-2
@@ -1,6 +1,11 @@
|
||||
package antireplay
|
||||
|
||||
const (
|
||||
DefaultMaxSize = 1024 * 1024 // 1MiB
|
||||
DefaultErrorRate = 0.001
|
||||
// DefaultStableBloomFilterMaxSize is a recommended byte size for a
|
||||
// stable bloom filter.
|
||||
DefaultStableBloomFilterMaxSize = 1024 * 1024 // 1MiB
|
||||
|
||||
// DefaultStableBloomFilterErrorRate is a recommended default error
|
||||
// rate for a stable bloom filter.
|
||||
DefaultStableBloomFilterErrorRate = 0.001
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user