Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Commit 249569d

Browse files
author
Torsten Link
committed
refactor(class name): Now get the type name from the static type name
1 parent c99563c commit 249569d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/interceptor.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const parserFactory = require('./data-processor-chunk');
88
* This interceptor cares about the handling of the messages.
99
* It will add the hops and copies the messages
1010
*/
11-
class LineHeaderInterceptor extends Interceptor {
11+
class ChunkProcessorInterceptor extends Interceptor {
1212

1313
constructor(endpoint, config) {
1414
super(endpoint, config);
@@ -21,7 +21,7 @@ class LineHeaderInterceptor extends Interceptor {
2121
}
2222

2323
get type() {
24-
return "data-processor-chunk";
24+
return ChunkProcessorInterceptor.type;
2525
}
2626

2727
receive(request, oldRequest) {
@@ -32,4 +32,4 @@ class LineHeaderInterceptor extends Interceptor {
3232
return this.connected.receive(request, oldRequest);
3333
}
3434
}
35-
exports.Interceptor = LineHeaderInterceptor;
35+
exports.Interceptor = ChunkProcessorInterceptor;

0 commit comments

Comments
 (0)