Holo-Host/holo-envoy

Circular dependency in identify

mjbrisebois opened this issue · 1 comments

https://github.com/Holo-Host/holo-envoy/blob/2020-01-22-vm-integration/src/index.ts#L166-L169

		const agent		= agents.find( agent => agent.public_address === agent_id );

		if ( agent === undefined ) {
		    return (new HoloError("Agent '%s' is unknown to this Host", agent_id )).toJSON();

Identify (which is used to establish a wormhole subscription) needs to run before sign-up. However, it the check above requires the agent to already be signed-up to execute identify.

Fixed in 5357d7e