Skip to content

Commit

Permalink
Fix validation type. Thanks to @konstantin Semenenko.
Browse files Browse the repository at this point in the history
  • Loading branch information
koculu committed Aug 5, 2022
1 parent b2ed7d1 commit b4f5d15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ZoneTree/Core/ZoneTreeLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ private void ValidateZoneTreeMeta()
ZoneTreeMeta.KeyType,
typeof(TKey).FullName);

if (!string.Equals(ZoneTreeMeta.ValueType, typeof(TKey).FullName))
if (!string.Equals(ZoneTreeMeta.ValueType, typeof(TValue).FullName))
throw new TreeValueTypeMismatchException(
ZoneTreeMeta.ValueType,
typeof(TValue).FullName);
Expand Down
4 changes: 2 additions & 2 deletions src/ZoneTree/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<Authors>Ahmed Yasin Koculu</Authors>
<PackageId>ZoneTree</PackageId>
<Title>ZoneTree</Title>
<ProductVersion>1.1.1.0</ProductVersion>
<Version>1.1.1.0</Version>
<ProductVersion>1.1.2.0</ProductVersion>
<Version>1.1.2.0</Version>
<Authors>Ahmed Yasin Koculu</Authors>
<AssemblyTitle>ZoneTree</AssemblyTitle>
<Description>ZoneTree is a persistent, high-performance key-value database for .NET. It can operate in memory or on a disk. (Optimized for SSDs)</Description>
Expand Down

0 comments on commit b4f5d15

Please sign in to comment.