Skip to content

Commit 19851a0

Browse files
shushpanpicandocodigo
authored andcommitted
Small update README for asynchronous Callbacks (elastic#907)
Sidekiq requires `perform` method for workers, with `perform_async` it doesn't work.
1 parent 00e889d commit 19851a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticsearch-model/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ class Indexer
533533
Logger = Sidekiq.logger.level == Logger::DEBUG ? Sidekiq.logger : nil
534534
Client = Elasticsearch::Client.new host: 'localhost:9200', logger: Logger
535535

536-
def perform_async(operation, record_id)
536+
def perform(operation, record_id)
537537
logger.debug [operation, "ID: #{record_id}"]
538538

539539
case operation.to_s

0 commit comments

Comments
 (0)