Skip to content

Commit 9751f04

Browse files
authored
Cleanup docs/examples from protostuff (#935)
1 parent 95ae374 commit 9751f04

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ You can think about scalecube as slf4j for microservices - Currently supported S
172172
**Message codec providers:**
173173

174174
* scalecube-services-transport-jackson: using Jackson to encode / decode service messages. https://github.com/FasterXML
175-
* scalecube-services-transport-protostuff: using protostuff to encode / decode service messages. https://github.com/protostuff
176175

177176
**Service discovery providers:**
178177

services-examples/src/main/java/io/scalecube/services/examples/codecs/Example1.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
public class Example1 {
1313

1414
public static final String JSON = "application/json";
15-
public static final String PROTOSTUFF = "application/protostuff";
1615
public static final String OCTET_STREAM = "application/octet-stream";
1716

1817
/**
@@ -31,7 +30,7 @@ public static void main(String[] args) {
3130
.transport(cfg -> cfg.transportFactory(new WebsocketTransportFactory()))
3231
.options(opts -> opts.metadata(serviceEndpoint)))
3332
.transport(RSocketServiceTransport::new)
34-
// .defaultContentType(PROTOSTUFF) // set explicit default data format
33+
// .defaultContentType(JSON) // set explicit default data format
3534
);
3635

3736
final Address seedAddress = seed.discoveryAddress();
@@ -51,7 +50,7 @@ public static void main(String[] args) {
5150

5251
seed.call()
5352
.api(GreetingsService.class)
54-
.sayHello("joe (on default dataFormat PROTOSTUFF)")
53+
.sayHello("joe (on JSON dataFormat)")
5554
.subscribe(consumer -> System.out.println(consumer.message()));
5655

5756
seed.call()

0 commit comments

Comments
 (0)