Skip to content

Commit

Permalink
Fix #70 Add DLQ rebumitter tool
Browse files Browse the repository at this point in the history
  • Loading branch information
regevbr committed Nov 21, 2019
1 parent e948bd7 commit 7665c4c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export {
IObject,
ISendMessageRequest,
ISquissOptions,
ResubmitterConfig,
ResubmitterMutator
} from './Types';
export {IMessageAttributes} from './attributeUtils';
export {Message} from './Message';
export {resubmitMessages} from './resubmitter';
8 changes: 4 additions & 4 deletions src/resubmitter/resubmitter.ts → src/resubmitter.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';

import {SQS_MAX_RECEIVE_BATCH, Squiss} from '../Squiss';
import {IMessageToSend, ResubmitterConfig, ResubmitterMutator} from '../Types';
import {Message} from '../Message';
import {SQS_MAX_RECEIVE_BATCH, Squiss} from './Squiss';
import {IMessageToSend, ResubmitterConfig, ResubmitterMutator} from './Types';
import {Message} from './Message';

interface IterationContext {
readonly limit: number;
Expand Down Expand Up @@ -115,7 +115,7 @@ const handleMessage = (customMutator: ResubmitterMutator | undefined, context: M
});
};

export const resubmit = (config: ResubmitterConfig) => {
export const resubmitMessages = (config: ResubmitterConfig) => {
const runContext = buildRunContext(config);
const handledMessages = new Set<string>();
return iteration({
Expand Down

0 comments on commit 7665c4c

Please sign in to comment.