fix(nodes): rebase fixes

This commit is contained in:
psychedelicious 2023-05-25 01:00:07 +10:00 committed by Kent Keirsey
parent 1fb307abf4
commit ff6b345d45
2 changed files with 4 additions and 5 deletions

View File

@ -46,7 +46,8 @@ class ApiDependencies:
invoker: Invoker = None
def initialize(config, event_handler_id: int, logger: types.ModuleType=logger):
@staticmethod
def initialize(config, event_handler_id: int, logger: Logger = logger):
logger.info(f"Internet connectivity is {config.internet_available}")
events = FastAPIEventService(event_handler_id)
@ -91,7 +92,7 @@ class ApiDependencies:
),
graph_execution_manager=graph_execution_manager,
processor=DefaultInvocationProcessor(),
restoration=RestorationServices(config,logger),
restoration=RestorationServices(config, logger),
configuration=config,
logger=logger,
)

View File

@ -45,7 +45,7 @@ class InvocationServices:
graph_execution_manager: ItemStorageABC["GraphExecutionState"],
processor: "InvocationProcessorABC",
restoration: RestorationServices,
configuration: InvokeAISettings=None,
configuration: InvokeAISettings = None,
):
self.model_manager = model_manager
self.events = events
@ -58,5 +58,3 @@ class InvocationServices:
self.processor = processor
self.restoration = restoration
self.configuration = configuration