From bcb80d3ff4a669d52d63950c8830427646c05884 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Sat, 5 Nov 2022 12:10:19 +0100 Subject: [chore] bump gruf/go-store to v2 (#953) * [chore] bump gruf/go-store to v2 * no more boobs --- vendor/github.com/cornelk/hashmap/defines.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 vendor/github.com/cornelk/hashmap/defines.go (limited to 'vendor/github.com/cornelk/hashmap/defines.go') diff --git a/vendor/github.com/cornelk/hashmap/defines.go b/vendor/github.com/cornelk/hashmap/defines.go new file mode 100644 index 000000000..75f0e9eb3 --- /dev/null +++ b/vendor/github.com/cornelk/hashmap/defines.go @@ -0,0 +1,12 @@ +package hashmap + +// defaultSize is the default size for a map. +const defaultSize = 8 + +// maxFillRate is the maximum fill rate for the slice before a resize will happen. +const maxFillRate = 50 + +// support all numeric and string types and aliases of those. +type hashable interface { + ~int | ~int8 | ~int16 | ~int32 | ~int64 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr | ~float32 | ~float64 | ~string +} -- cgit v1.3