fix code style in worker_spec