(host: str = '127.0.0.1', port_arg: str = '2323')
| 65 | await server.serve_forever() # <6> |
| 66 | |
| 67 | def main(host: str = '127.0.0.1', port_arg: str = '2323'): |
| 68 | port = int(port_arg) |
| 69 | print('Building index.') |
| 70 | index = InvertedIndex() # <7> |
| 71 | try: |
| 72 | asyncio.run(supervisor(index, host, port)) # <8> |
| 73 | except KeyboardInterrupt: # <9> |
| 74 | print('\nServer shut down.') |
| 75 | |
| 76 | if __name__ == '__main__': |
| 77 | main(*sys.argv[1:]) |
no test coverage detected