File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
app/src/main/java/run/halo/feed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 3
3
import com .google .common .base .Throwables ;
4
4
import java .io .StringReader ;
5
5
import java .nio .charset .StandardCharsets ;
6
+ import java .time .Duration ;
6
7
import java .time .Instant ;
7
8
import java .time .ZoneOffset ;
8
9
import java .time .format .DateTimeFormatter ;
@@ -33,6 +34,7 @@ public class RssXmlBuilder {
33
34
+ "Chrome/131.0.0.0 Safari/537.36" ;
34
35
private final WebClient webClient = WebClient .builder ()
35
36
.clientConnector (new ReactorClientHttpConnector (HttpClient .create ()
37
+ .responseTimeout (Duration .ofSeconds (1 ))
36
38
.followRedirect (true ))
37
39
)
38
40
.build ();
@@ -313,6 +315,6 @@ private Long getFileSizeBytes(String url) {
313
315
)
314
316
.onErrorReturn (0L )
315
317
.blockOptional ()
316
- .orElseThrow ( );
318
+ .orElse ( 0L );
317
319
}
318
320
}
You can’t perform that action at this time.
0 commit comments