Skip to content

Commit

Permalink
cleanup moize a little
Browse files Browse the repository at this point in the history
  • Loading branch information
Bossett committed Dec 31, 2024
1 parent a63305e commit 4e468cb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/addn/getUserDetails.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { BskyAgent } from '@atproto/api'
import resolveHandleToDID from './resolveHandleToDID'
import moize from 'moize'

import { ProfileViewDetailed } from '../lexicon/types/app/bsky/actor/defs'

Expand Down
2 changes: 1 addition & 1 deletion src/methods/feed-generation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function (server: Server, ctx: AppContext) {

const algoHandlerMoized = moize(algo, {
isPromise: true,
maxAge: 30, // 30 seconds
maxAge: 300,
isShallowEqual: true,
})

Expand Down

0 comments on commit 4e468cb

Please sign in to comment.