Skip to content

Commit

Permalink
FEAT-modin-project#1821: Fix support for proxying methods RPyC claims…
Browse files Browse the repository at this point in the history
… are local

Signed-off-by: Vasilij Litvinov <vasilij.n.litvinov@intel.com>
  • Loading branch information
vnlitvinov committed Jul 28, 2020
1 parent 3008671 commit ffd3113
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modin/experimental/cloud/rpyc_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,9 @@ def method(_self, *_args, __method_name__=name, **_kw):
try:
remote = cache[__method_name__]
except KeyError:
cache[__method_name__] = remote = getattr(
remote_cls, __method_name__
)
# use remote_cls.__getattr__ to force RPyC return us
# a proxy for remote method call instead of its local wrapper
cache[__method_name__] = remote = remote_cls.__getattr__(__method_name__)
return remote(_self.__remote_end__, *_args, **_kw)

method.__name__ = name
Expand Down

0 comments on commit ffd3113

Please sign in to comment.