File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -495,6 +495,7 @@ impl Channel {
495
495
)
496
496
. await
497
497
{
498
+ // Extend with requested verbosity data
498
499
if let Ok ( tmp) = redis:: cmd ( "HGETALL" )
499
500
. arg ( CacheKey :: AuthorityRecordVerbose (
500
501
key. to_string ( ) ,
@@ -507,6 +508,23 @@ impl Channel {
507
508
{
508
509
auth. extend ( tmp) ;
509
510
}
511
+ // Additional extend with discovery data
512
+ if let Ok ( mut discovery) = redis:: cmd (
513
+ "HGETALL" ,
514
+ )
515
+ . arg ( CacheKey :: AuthorityRecordVerbose (
516
+ key. to_string ( ) ,
517
+ Verbosity :: Discovery ,
518
+ ) )
519
+ . query_async :: < Connection , CacheMap > (
520
+ & mut conn,
521
+ )
522
+ . await
523
+ {
524
+ // NOTE: discovery.ips is not needed to be available, so let's skip it.
525
+ discovery. remove ( "ips" ) ;
526
+ auth. extend ( discovery) ;
527
+ }
510
528
data. push ( auth. into ( ) ) ;
511
529
}
512
530
}
You can’t perform that action at this time.
0 commit comments