Skip to content

Commit

Permalink
fix format/lint
Browse files Browse the repository at this point in the history
  • Loading branch information
njooma committed Feb 26, 2025
1 parent 460c023 commit 7659d1a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
32 changes: 16 additions & 16 deletions src/robot/session-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@ const timeoutBlob = new Blob(
export default class SessionManager {
public readonly transport: Transport;

public static readonly heartbeatMonitoredMethods: Set<string> = new Set([
"/viam.component.arm.v1.ArmService/MoveToPosition",
"/viam.component.arm.v1.ArmService/MoveToJointPositions",
"/viam.component.arm.v1.ArmService/MoveThroughJointPositions",
"/viam.component.base.v1.BaseService/MoveStraight",
"/viam.component.base.v1.BaseService/Spin",
"/viam.component.base.v1.BaseService/SetPower",
"/viam.component.base.v1.BaseService/SetVelocity",
"/viam.component.gantry.v1.GantryService/MoveToPosition",
"/viam.component.gripper.v1.GripperService/Open",
"/viam.component.gripper.v1.GripperService/Grab",
"/viam.component.motor.v1.MotorService/SetPower",
"/viam.component.motor.v1.MotorService/GoFor",
"/viam.component.motor.v1.MotorService/GoTo",
"/viam.component.motor.v1.MotorService/SetRPM",
"/viam.component.servo.v1.ServoService/Move",
public static readonly heartbeatMonitoredMethods = new Set<string>([
'/viam.component.arm.v1.ArmService/MoveToPosition',
'/viam.component.arm.v1.ArmService/MoveToJointPositions',
'/viam.component.arm.v1.ArmService/MoveThroughJointPositions',
'/viam.component.base.v1.BaseService/MoveStraight',
'/viam.component.base.v1.BaseService/Spin',
'/viam.component.base.v1.BaseService/SetPower',
'/viam.component.base.v1.BaseService/SetVelocity',
'/viam.component.gantry.v1.GantryService/MoveToPosition',
'/viam.component.gripper.v1.GripperService/Open',
'/viam.component.gripper.v1.GripperService/Grab',
'/viam.component.motor.v1.MotorService/SetPower',
'/viam.component.motor.v1.MotorService/GoFor',
'/viam.component.motor.v1.MotorService/GoTo',
'/viam.component.motor.v1.MotorService/SetRPM',
'/viam.component.servo.v1.ServoService/Move',
]);

private currentSessionID = '';
Expand Down
2 changes: 1 addition & 1 deletion src/robot/session-transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class SessionTransport implements Transport {
constructor(
protected readonly deferredTransport: () => Transport,
protected readonly sessionManager: SessionManager
) { }
) {}

private async getSessionMetadata(): Promise<Headers> {
try {
Expand Down

0 comments on commit 7659d1a

Please sign in to comment.