(self, context, descriptor)
| 73 | yield self._make_flight_info(key, descriptor, table) |
| 74 | |
| 75 | def get_flight_info(self, context, descriptor): |
| 76 | key = FlightServer.descriptor_to_key(descriptor) |
| 77 | if key in self.flights: |
| 78 | table = self.flights[key] |
| 79 | return self._make_flight_info(key, descriptor, table) |
| 80 | raise KeyError('Flight not found.') |
| 81 | |
| 82 | def do_put(self, context, descriptor, reader, writer): |
| 83 | key = FlightServer.descriptor_to_key(descriptor) |