Woops, make sure non-disti mode still works wen maybe getting `pikerd` XD
							parent
							
								
									2eeef2a123
								
							
						
					
					
						commit
						2d72a052aa
					
				|  | @ -282,16 +282,21 @@ async def maybe_open_pikerd( | ||||||
|             loglevel=loglevel, |             loglevel=loglevel, | ||||||
|             **kwargs, |             **kwargs, | ||||||
|         ) as (actor, addrs), |         ) as (actor, addrs), | ||||||
|  |     ): | ||||||
|  |         if _root_dname in actor.uid: | ||||||
|  |             yield None | ||||||
|  |             return | ||||||
| 
 | 
 | ||||||
|         # try to attach to any existing (host-local) `pikerd` |         # NOTE: IFF running in disti mode, try to attach to any | ||||||
|         tractor.find_actor( |         # existing (host-local) `pikerd`. | ||||||
|  |         else: | ||||||
|  |             async with tractor.find_actor( | ||||||
|                 _root_dname, |                 _root_dname, | ||||||
|                 registry_addrs=registry_addrs, |                 registry_addrs=registry_addrs, | ||||||
|                 only_first=True, |                 only_first=True, | ||||||
|                 # raise_on_none=True, |                 # raise_on_none=True, | ||||||
|         ) as pikerd_portal, |             ) as pikerd_portal: | ||||||
| 
 | 
 | ||||||
|     ): |  | ||||||
|                 # connect to any existing remote daemon presuming its |                 # connect to any existing remote daemon presuming its | ||||||
|                 # registry socket was selected. |                 # registry socket was selected. | ||||||
|                 if pikerd_portal is not None: |                 if pikerd_portal is not None: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue