summaryrefslogtreecommitdiff
path: root/xmake
diff options
context:
space:
mode:
authorruki <[email protected]>2022-05-21 21:37:20 +0800
committerruki <[email protected]>2022-05-21 21:37:20 +0800
commit56f6d6a37fbbcd011fc99441f30df3ce24b7c3f6 (patch)
tree481bb6a10379ac016de705e8d9140388d4678bc5 /xmake
parentdbc34e84e8cbdaa3b2482e825b44aec311eafc1b (diff)
add bloom filter get and set
Diffstat (limited to 'xmake')
-rw-r--r--xmake/core/base/bloom_filter.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake/core/base/bloom_filter.lua b/xmake/core/base/bloom_filter.lua
index 2bb9574ae..97712eb63 100644
--- a/xmake/core/base/bloom_filter.lua
+++ b/xmake/core/base/bloom_filter.lua
@@ -127,7 +127,8 @@ function _instance:set(item)
end
-- do set
- return bloom_filter._set(self:cdata(), item)
+ ok = bloom_filter._set(self:cdata(), item)
+ return true, ok
end
-- get the bloom filter data item
@@ -150,7 +151,8 @@ function _instance:get(item)
end
-- do get
- return bloom_filter._get(self:cdata(), item)
+ ok = bloom_filter._get(self:cdata(), item)
+ return true, ok
end
-- ensure it is opened