Created
March 20, 2011 20:46
-
-
Save monken/878659 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package ElasticSearch::Transport::AEHTTP::Sync; | |
| use strict; | |
| use base 'ElasticSearch::Transport::AEHTTP'; | |
| use mro; | |
| sub request { | |
| my $cv = shift->next::method(@_); | |
| return $cv->recv; | |
| } | |
| *refresh_servers = \&ElasticSearch::Transport::refresh_servers; |
Author
Old habits. Changed it to SUPER
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nice :) good thinking
why do you need the
next::methodas opposed toSUPER::request? It introduces a requirement for perl 5.9.5