Skip to content

Commit d96fe2c

Browse files
committed
fix format
1 parent 447be20 commit d96fe2c

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

src/main/java/com/uber/cadence/samples/hello/HelloActivity.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,16 @@ public String composeGreeting(String greeting, String name) {
7777
public static void main(String[] args) {
7878
// Start a worker that hosts both workflow and activity implementations.
7979
final WorkflowServiceTChannel.ClientOptions.Builder builder =
80-
new WorkflowServiceTChannel.ClientOptions.Builder();
80+
new WorkflowServiceTChannel.ClientOptions.Builder();
8181
// Use 5 seconds as RPC timeout
8282
builder.setRpcTimeout(5 * 1000);
8383
IWorkflowService wfService =
84-
new WorkflowServiceTChannel(
85-
Strings.isNullOrEmpty(System.getenv("CADENCE_SEEDS"))
86-
? "127.0.0.1"
87-
: System.getenv("CADENCE_SEEDS"),
88-
7933,
89-
builder.build());
84+
new WorkflowServiceTChannel(
85+
Strings.isNullOrEmpty(System.getenv("CADENCE_SEEDS"))
86+
? "127.0.0.1"
87+
: System.getenv("CADENCE_SEEDS"),
88+
7933,
89+
builder.build());
9090
Worker.Factory factory = new Worker.Factory(wfService, DOMAIN);
9191
Worker worker = factory.newWorker(TASK_LIST);
9292
// Workflows are stateful. So you need a type to create instances.

src/main/java/com/uber/cadence/samples/hello/HelloMetric.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545

4646
/**
4747
* Hello World Cadence workflow that executes a single activity with emitting metrics to Prometheus.
48-
* Check http://localhost:9098/ to see the reported metrics for scaping.
49-
* Requires a local instance the Cadence service to be running.
48+
* Check http://localhost:9098/ to see the reported metrics for scaping. Requires a local instance
49+
* the Cadence service to be running.
5050
*/
5151
public class HelloMetric {
5252

@@ -122,7 +122,6 @@ private static Scope createMetricScope() throws IOException {
122122
}
123123
}
124124

125-
126125
/**
127126
* PrometheusScope will replace all "-"(dash) into "_"(underscore) so that it meets the requirement
128127
* in https://prometheus.io/docs/concepts/data_model/

0 commit comments

Comments
 (0)