Update reactor
This commit is contained in:
parent
242bd588c6
commit
1e1ccff846
4
pom.xml
4
pom.xml
@ -105,12 +105,12 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.projectreactor</groupId>
|
<groupId>io.projectreactor</groupId>
|
||||||
<artifactId>reactor-core</artifactId>
|
<artifactId>reactor-core</artifactId>
|
||||||
<version>3.4.13</version>
|
<version>3.4.18</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.projectreactor</groupId>
|
<groupId>io.projectreactor</groupId>
|
||||||
<artifactId>reactor-test</artifactId>
|
<artifactId>reactor-test</artifactId>
|
||||||
<version>3.4.13</version>
|
<version>3.4.18</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -216,8 +216,8 @@ public class DiskCache implements URLsDiskHandler, URLsWriter {
|
|||||||
var blockKeyMono = Mono.fromCallable(() -> getBlockKey(url, blockId));
|
var blockKeyMono = Mono.fromCallable(() -> getBlockKey(url, blockId));
|
||||||
return fileContent
|
return fileContent
|
||||||
.get(null, blockKeyMono)
|
.get(null, blockKeyMono)
|
||||||
.map(dataToReceive -> {
|
.map(data -> {
|
||||||
try (var data = dataToReceive) {
|
try (data) {
|
||||||
int blockOffset = getBlockOffset(blockId);
|
int blockOffset = getBlockOffset(blockId);
|
||||||
int blockLength = data.readableBytes();
|
int blockLength = data.readableBytes();
|
||||||
if (meta.size() != -1) {
|
if (meta.size() != -1) {
|
||||||
@ -254,8 +254,8 @@ public class DiskCache implements URLsDiskHandler, URLsWriter {
|
|||||||
Mono<Buffer> urlKeyMono = Mono.fromCallable(() -> serializeUrl(url));
|
Mono<Buffer> urlKeyMono = Mono.fromCallable(() -> serializeUrl(url));
|
||||||
return fileMetadata
|
return fileMetadata
|
||||||
.get(null, urlKeyMono)
|
.get(null, urlKeyMono)
|
||||||
.map(prevBytesSend -> {
|
.map(prevBytes -> {
|
||||||
try (var prevBytes = prevBytesSend) {
|
try (prevBytes) {
|
||||||
return deserializeMetadata(prevBytes);
|
return deserializeMetadata(prevBytes);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user