chore: fix typo
parent
7b72b3c8e9
commit
480f2e79ef
|
@ -53,8 +53,8 @@ public class Dispatcher {
|
|||
.flatMap(
|
||||
eventName ->
|
||||
tgEventProcessors.stream()
|
||||
// FIXME that fucking stupid, why iterate over, just use a map! Make
|
||||
// mapping at startup then we're gucci for the rest of the run
|
||||
// FIXME this is fucking stupid, why iterate over, just use a map!
|
||||
// Make mapping at startup then we're gucci for the rest of the run
|
||||
.filter(processor -> processor.getEventName().equals(eventName))
|
||||
.findAny())
|
||||
.map(processor -> processor.process(callbackQueryContext, update))
|
||||
|
|
|
@ -61,8 +61,8 @@ public class Router {
|
|||
.flatMap(
|
||||
command ->
|
||||
tgCommandProcessors.stream()
|
||||
// FIXME that fucking stupid, why iterate over, just use a map! Make
|
||||
// mapping at startup then we're gucci for the rest of the run
|
||||
// FIXME this is fucking stupid, why iterate over, just use a map!
|
||||
// Make mapping at startup then we're gucci for the rest of the run
|
||||
.filter(ex -> ex.getTriggerKeyword().equals(command))
|
||||
.findAny())
|
||||
.map(executor -> executor.process(chat, update))
|
||||
|
|
Loading…
Reference in New Issue