File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -111,12 +111,10 @@ async def as_service(cls: Type[T], **actor_kwargs) -> "ServiceInterface":
111111            class_attrs ["num_replicas" ] =  1 
112112        cfg  =  ServiceConfig (** filter_config_params (ServiceConfig , class_attrs ))
113113
114-         service_cls  =  type (f"{ cls .__name__ }  Service" , (cls ,), {"_service_config" : cfg })
115- 
116-         logger .info ("Spawning Service Actor for %s" , service_cls .__name__ )
117-         service  =  Service (cfg , service_cls , actor_kwargs )
114+         logger .info ("Spawning Service Actor for %s" , cls .__name__ )
115+         service  =  Service (cfg , cls , actor_kwargs )
118116        await  service .__initialize__ ()
119-         return  ServiceInterface (service , service_cls )
117+         return  ServiceInterface (service , cls )
120118
121119    @endpoint  
122120    async  def  setup (self ):
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments