Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
  • Loading branch information
vdahiya12 committed Sep 6, 2022
1 parent c840439 commit 2681dbf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions sonic-ycabled/ycable/ycable_utilities/y_cable_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,9 +421,11 @@ def connect_channel(channel, stub, port):
else:
break

def create_channel(type,level, kvp, soc_ip, port):
def create_channel(type, level, kvp, soc_ip, port):

channel, stub = None, None

#Helper callback to get an channel connectivity state
def wait_for_state_change(channel_connectivity):
if channel_connectivity == grpc.ChannelConnectivity.TRANSIENT_FAILURE:
helper_logger.log_notice("gRPC port {} state changed to TRANSIENT_FAILURE".format(port))
Expand Down Expand Up @@ -458,8 +460,9 @@ def wait_for_state_change(channel_connectivity):

#connect_channel(channel, stub, port)
"""
Removing the connect channel call for now, since it is not required for normal gRPC
and all use cases seem to work without it
Comment the connect channel call for now, since it is not required for normal gRPC I/O
and all use cases seem to work without it.
TODO: will need to see if this subroutine call can be ommitted for all use cases
"""

return channel, stub
Expand Down

0 comments on commit 2681dbf

Please sign in to comment.