Skip to content

Commit

Permalink
Merge pull request elizaOS#1000 from cryptofish7/fix-typo-initializeC…
Browse files Browse the repository at this point in the history
…ache

fix: typo initialize
  • Loading branch information
monilpat authored Dec 12, 2024
2 parents 36f832d + c2d5c64 commit 9d1a131
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -459,14 +459,14 @@ export async function createAgent(
});
}

function intializeFsCache(baseDir: string, character: Character) {
function initializeFsCache(baseDir: string, character: Character) {
const cacheDir = path.resolve(baseDir, character.id, "cache");

const cache = new CacheManager(new FsCacheAdapter(cacheDir));
return cache;
}

function intializeDbCache(character: Character, db: IDatabaseCacheAdapter) {
function initializeDbCache(character: Character, db: IDatabaseCacheAdapter) {
const cache = new CacheManager(new DbCacheAdapter(db, character.id));
return cache;
}
Expand All @@ -489,7 +489,7 @@ async function startAgent(character: Character, directClient) {

await db.init();

const cache = intializeDbCache(character, db);
const cache = initializeDbCache(character, db);
const runtime = await createAgent(character, db, cache, token);

await runtime.initialize();
Expand Down

0 comments on commit 9d1a131

Please sign in to comment.