diff --git a/python/pyarrow/_flight.pyx b/python/pyarrow/_flight.pyx index 132bc410584..b7e7af260c2 100644 --- a/python/pyarrow/_flight.pyx +++ b/python/pyarrow/_flight.pyx @@ -2836,7 +2836,6 @@ cdef class _ServerMiddlewareFactoryWrapper(ServerMiddlewareFactory): for key, factory in self.factories.items(): instance = factory.start_call(info, headers) if instance: - # TODO: prevent duplicate keys instances[key] = instance if instances: wrapper = _ServerMiddlewareWrapper(instances)