Skip to content

Commit

Permalink
feat: fix example codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
jianyi-gronk committed May 26, 2024
1 parent 28e2e50 commit afe24e9
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
2 changes: 0 additions & 2 deletions example/dubbo-observable-example/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { PrometheusExporter } from '@opentelemetry/exporter-prometheus'
const transport = createDubboTransport({
baseUrl: "http://localhost:8080",
httpVersion: "1.1",

/**
* Enable Observable Service on service consumer.
*/
Expand All @@ -36,7 +35,6 @@ async function main() {
const client = createPromiseClient(ExampleService, transport, { serviceVersion: '1.0.0', serviceGroup: 'dubbo' });

server.get("/", (_, reply) => {

client.say({ sentence: "Hello World" }).then(rs => {
reply.type("application/json");
reply.send(rs.toJsonString());
Expand Down
5 changes: 2 additions & 3 deletions example/dubbo-observable-example/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ services:
- "13000:3000"

vm:
#victoria-metrics-prod -storageDataPath /victoria-metrics -retentionPeriod 180d -promscrape.config /prometheus.yml -promscrape.httpSDCheckInterval 60s
image: victoriametrics/victoria-metrics:latest
hostname: vm
command: -storageDataPath /victoria-metrics-data -retentionPeriod 180d -promscrape.config /prometheus.yml -promscrape.httpSDCheckInterval 60s
volumes:
- ./prometheus.yml:/prometheus.yml
- ./victoria-metrics-data:/victoria-metrics-data
- ./prometheus.yml:/prometheus.yml
- ./victoria-metrics-data:/victoria-metrics-data
networks:
- dubbo-network
ports:
Expand Down
1 change: 0 additions & 1 deletion example/dubbo-observable-example/proto/example.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ message SayResponse {

service ExampleService {
rpc Say(SayRequest) returns (SayResponse) {}
rpc hello(SayRequest) returns (SayResponse) {}
}
1 change: 0 additions & 1 deletion example/dubbo-observable-example/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ async function main() {
const server = fastify();
await server.register(fastifyDubboPlugin, {
routes,

/**
* Enable Observable Service on service provider.
*/
Expand Down

0 comments on commit afe24e9

Please sign in to comment.