Fix mistaken method name: "append", not "add"

This defect was originally introduced in Google-internal source control
on 18 August 2014. Wow. Clearly unit test coverage is needed for this
feature.
pull/1686/head
Nathaniel Manista 10 years ago
parent 02accdb6e3
commit 1c8f36c40b
  1. 2
      src/python/src/grpc/framework/face/_calls.py

@ -248,7 +248,7 @@ class _OperationFuture(future.Future):
"""See future.Future.add_done_callback for specification."""
with self._condition:
if self._callbacks is not None:
self._callbacks.add(fn)
self._callbacks.append(fn)
return
callable_util.call_logging_exceptions(fn, _DONE_CALLBACK_LOG_MESSAGE, self)

Loading…
Cancel
Save