'Should this server be sending federation traffic directly?'

def should_send_federation(self):

    return (self.config.send_federation and ((not self.config.worker_app) or (self.config.worker_app == 'synapse.app.federation_sender')))
