From 6db30f462e5c77df2a4fb56cd793ecb5243ecdff Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Sat, 10 Jul 2010 15:50:17 -0400 Subject: thank you dialyzer --- include/mem3.hrl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'include/mem3.hrl') diff --git a/include/mem3.hrl b/include/mem3.hrl index f6584f19..b9359b44 100644 --- a/include/mem3.hrl +++ b/include/mem3.hrl @@ -1,4 +1,11 @@ --record(shard, {name, node, dbname, range, ref}). +% type specification hacked to suppress dialyzer warning re: match spec +-record(shard, { + name :: binary() | '_', + node :: node() | '_', + dbname :: binary(), + range :: [non_neg_integer() | '$1' | '$2'], + ref :: reference() | 'undefined' | '_' +}). %% types -type join_type() :: init | join | replace | leave. -- cgit v1.2.3