Skip to content

Commit b3fa6a5

Browse files
committed
Polishing.
1 parent 9c849e7 commit b3fa6a5

File tree

2 files changed

+24
-23
lines changed

2 files changed

+24
-23
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ r2dbc:postgresql:failover://user:foo@host1:5433,host2:5432,host3
189189
For example an application can create two connection pools. One data source is for writes, another for reads. The write pool limits connections only to a primary node:
190190

191191
```
192-
r2dbc:postgresql:failover://user:foo@host1:5433,host2:5432,host3?targetServerType=primary.
192+
r2dbc:postgresql:failover://user:foo@host1:5433,host2:5432,host3?targetServerType=primary
193193
```
194194

195195
## Cursors
@@ -208,15 +208,15 @@ Listen and Notify provide a simple form of signal or inter-process communication
208208
sender (notify) and the receiver (listen). The following example uses two connections to illustrate how they work together:
209209

210210
```java
211-
PostgresqlConnection sender= …;
212-
PostgresqlConnection receiver= …;
211+
PostgresqlConnection sender = …;
212+
PostgresqlConnection receiver = …;
213213

214214
Flux<Notification> listen = receiver.createStatement("LISTEN mymessage")
215215
.execute()
216216
.flatMap(PostgresqlResult::getRowsUpdated)
217217
.thenMany(receiver.getNotifications());
218218

219-
Mono<Void> notify=sender.createStatement("NOTIFY mymessage, 'Hello World'")
219+
Mono<Void> notify = sender.createStatement("NOTIFY mymessage, 'Hello World'")
220220
.execute()
221221
.flatMap(PostgresqlResult::getRowsUpdated)
222222
.then();
@@ -387,7 +387,7 @@ ReplicationRequest replicationRequest = ReplicationRequest.logical()
387387
.build();
388388

389389
Flux<T> replicationStream = replicationConnection.startReplication(replicationRequest).flatMapMany(it -> {
390-
return it.map(byteBuf -> {…})
390+
return it.map(byteBuf -> )
391391
.doOnError(t -> it.close().subscribe());
392392
});
393393
```

pom.xml

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@
276276
<target>${java.version}</target>
277277
</configuration>
278278
</plugin>
279+
279280
<plugin>
280281
<groupId>org.apache.maven.plugins</groupId>
281282
<artifactId>maven-jar-plugin</artifactId>
@@ -293,11 +294,13 @@
293294
</archive>
294295
</configuration>
295296
</plugin>
297+
296298
<plugin>
297299
<groupId>org.apache.maven.plugins</groupId>
298300
<artifactId>maven-deploy-plugin</artifactId>
299301
<version>3.1.1</version>
300302
</plugin>
303+
301304
<plugin>
302305
<groupId>org.apache.maven.plugins</groupId>
303306
<artifactId>maven-enforcer-plugin</artifactId>
@@ -319,6 +322,7 @@
319322
</execution>
320323
</executions>
321324
</plugin>
325+
322326
<plugin>
323327
<groupId>org.apache.maven.plugins</groupId>
324328
<artifactId>maven-javadoc-plugin</artifactId>
@@ -344,6 +348,7 @@
344348
</execution>
345349
</executions>
346350
</plugin>
351+
347352
<plugin>
348353
<groupId>org.apache.maven.plugins</groupId>
349354
<artifactId>maven-source-plugin</artifactId>
@@ -357,6 +362,7 @@
357362
</execution>
358363
</executions>
359364
</plugin>
365+
360366
<plugin>
361367
<groupId>org.apache.maven.plugins</groupId>
362368
<artifactId>maven-surefire-plugin</artifactId>
@@ -374,6 +380,7 @@
374380
</systemPropertyVariables>
375381
</configuration>
376382
</plugin>
383+
377384
<plugin>
378385
<groupId>org.apache.maven.plugins</groupId>
379386
<artifactId>maven-failsafe-plugin</artifactId>
@@ -397,6 +404,7 @@
397404
</systemPropertyVariables>
398405
</configuration>
399406
</plugin>
407+
400408
<plugin>
401409
<groupId>org.codehaus.mojo</groupId>
402410
<artifactId>flatten-maven-plugin</artifactId>
@@ -428,18 +436,20 @@
428436
</execution>
429437
</executions>
430438
</plugin>
439+
431440
<plugin>
432441
<groupId>org.sonatype.central</groupId>
433442
<artifactId>central-publishing-maven-plugin</artifactId>
434443
<version>0.8.0</version>
435444
<extensions>true</extensions>
436445
<configuration>
437-
<publishingServerId>central</publishingServerId>
438446
<autoPublish>true</autoPublish>
439447
<deploymentName>R2DBC Postgresql ${project.version}</deploymentName>
448+
<publishingServerId>central</publishingServerId>
440449
</configuration>
441450
</plugin>
442451
</plugins>
452+
443453
<resources>
444454
<resource>
445455
<directory>${project.basedir}</directory>
@@ -460,6 +470,7 @@
460470

461471
<profile>
462472
<id>jmh</id>
473+
463474
<dependencies>
464475
<dependency>
465476
<groupId>com.github.mp911de.microbenchmark-runner</groupId>
@@ -480,6 +491,7 @@
480491
<scope>test</scope>
481492
</dependency>
482493
</dependencies>
494+
483495
<build>
484496
<plugins>
485497
<plugin>
@@ -501,6 +513,7 @@
501513
</execution>
502514
</executions>
503515
</plugin>
516+
504517
<plugin>
505518
<groupId>org.apache.maven.plugins</groupId>
506519
<artifactId>maven-surefire-plugin</artifactId>
@@ -516,6 +529,7 @@
516529
<skip>true</skip>
517530
</configuration>
518531
</plugin>
532+
519533
<plugin>
520534
<groupId>org.codehaus.mojo</groupId>
521535
<artifactId>exec-maven-plugin</artifactId>
@@ -542,6 +556,7 @@
542556
</plugin>
543557
</plugins>
544558
</build>
559+
545560
<repositories>
546561
<repository>
547562
<id>jitpack.io</id>
@@ -552,6 +567,7 @@
552567

553568
<profile>
554569
<id>snapshot</id>
570+
555571
<build>
556572
<plugins>
557573
<plugin>
@@ -564,12 +580,11 @@
564580

565581
<profile>
566582
<id>central</id>
583+
567584
<build>
568585
<pluginManagement>
569586
<plugins>
570-
571587
<!-- Sign JARs -->
572-
573588
<plugin>
574589
<groupId>org.apache.maven.plugins</groupId>
575590
<artifactId>maven-gpg-plugin</artifactId>
@@ -590,36 +605,22 @@
590605
</execution>
591606
</executions>
592607
</plugin>
593-
594608
</plugins>
595-
596609
</pluginManagement>
597610

598611
<plugins>
599-
600612
<plugin>
601613
<groupId>org.apache.maven.plugins</groupId>
602614
<artifactId>maven-gpg-plugin</artifactId>
603615
</plugin>
604616

605617
<plugin>
606618
<groupId>org.sonatype.central</groupId>
607-
<artifactId>central-publishing-maven-plugin</artifactId>
619+
<artifactId>central-publishing-maven-plugin</artifactId>
608620
</plugin>
609-
610621
</plugins>
611-
612622
</build>
613-
614-
<distributionManagement>
615-
<repository>
616-
<id>sonatype</id>
617-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
618-
</repository>
619-
</distributionManagement>
620-
621623
</profile>
622-
623624
</profiles>
624625

625626
</project>

0 commit comments

Comments
 (0)