@@ -330,36 +330,36 @@ async function connect(state: SdkState, config: ActionSdk["config"], options?: R
330330 } )
331331 logger . debug ( "Successfully updated runtime function definitions" )
332332
333- const FunctionDefinitionClient = new FunctionDefinitionServiceClient ( state . transport )
334- try {
335- const finishedCall = await FunctionDefinitionClient . update (
336- FunctionDefinitionUpdateRequest . create (
337- {
338- functions : [
339- ...state . functions . map ( func => ( {
340- ...func . definition ,
341- } ) )
342- ]
343- }
344- ) , builtOptions
345- ) ;
346-
347- if ( ! finishedCall . response . success ) {
348- logger . error ( {
349- err : finishedCall . response ,
350- request : finishedCall . request ,
351- config,
352- } , "Error while updating function definitions" )
353- return Promise . reject ( finishedCall . response ) ;
354- }
355- } catch ( error ) {
356- logger . error ( {
357- err : error ,
358- config,
359- } , "Error while updating function definitions" )
360- return Promise . reject ( error ) ;
361- }
362- logger . debug ( "Updated function definitions" )
333+ // const FunctionDefinitionClient = new FunctionDefinitionServiceClient(state.transport)
334+ // try {
335+ // const finishedCall = await FunctionDefinitionClient.update(
336+ // FunctionDefinitionUpdateRequest.create(
337+ // {
338+ // functions: [
339+ // ...state.functions.map(func => ({
340+ // ...func.definition,
341+ // }))
342+ // ]
343+ // }
344+ // ), builtOptions
345+ // );
346+ //
347+ // if (!finishedCall.response.success) {
348+ // logger.error({
349+ // err: finishedCall.response,
350+ // request: finishedCall.request,
351+ // config,
352+ // }, "Error while updating function definitions")
353+ // return Promise.reject(finishedCall.response);
354+ // }
355+ // } catch (error) {
356+ // logger.error({
357+ // err: error,
358+ // config,
359+ // }, "Error while updating function definitions")
360+ // return Promise.reject(error);
361+ // }
362+ // logger.debug("Updated function definitions")
363363
364364 const flowTypeClient = new FlowTypeServiceClient ( state . transport )
365365 await flowTypeClient . update ( FlowTypeUpdateRequest . create ( {
0 commit comments