fix: ๐Ÿ› getnode request limiter

This commit is contained in:
Anthony Potdevin 2020-08-14 18:27:42 +02:00
parent 43a20cdb93
commit 5b68684015
No known key found for this signature in database
GPG key ID: 4403F1DFBE779457

View file

@ -21,7 +21,7 @@ type NodeParent = {
export const nodeResolvers = {
Query: {
getNode: async (_: undefined, params: any, context: ContextType) => {
await requestLimiter(context.ip, 'closedChannels');
await requestLimiter(context.ip, 'getNode');
const { withoutChannels = true, publicKey } = params;
const { lnd } = context;