Skip to content

Commit

Permalink
implement the Memory ADT trait for a variable address length
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrezot committed Jan 30, 2025
1 parent e15b415 commit 00e823b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/memory/redis_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::{fmt, marker::PhantomData};

use redis::{RedisError, aio::ConnectionManager};

use crate::{ADDRESS_LENGTH, Address, MemoryADT};
use crate::{Address, MemoryADT};

// Arguments passed to the LUA script, in order:
// 1. Guard address.
Expand Down Expand Up @@ -85,7 +85,7 @@ impl<Address: Sync, Word: Sync> RedisMemory<Address, Word> {
}
}

impl<const WORD_LENGTH: usize> MemoryADT
impl<const ADDRESS_LENGTH: usize, const WORD_LENGTH: usize> MemoryADT
for RedisMemory<Address<ADDRESS_LENGTH>, [u8; WORD_LENGTH]>
{
type Address = Address<ADDRESS_LENGTH>;
Expand Down

0 comments on commit 00e823b

Please sign in to comment.