]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add timeout augmentation
authorVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 17 Aug 2022 19:35:39 +0000 (20:35 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 17 Aug 2022 19:35:39 +0000 (20:35 +0100)
src/libserver/symcache/symcache_item.cxx

index 57a0a66951a5eb906bf1c8dc21f1679f9522df42..87e857d23db1096764e077aadfa028c58235a9dd 100644 (file)
@@ -65,6 +65,12 @@ static const auto known_augmentations =
                                                                           .implied_flags = SYMBOL_TYPE_FINE
                                                           }
                                },
+                               {"timeout", {
+                                                                          .weight = 0,
+                                                                          .implied_flags = 0,
+                                                                          .value_type = augmentation_value_type::NUMBER_VALUE,
+                                       }
+                               }
                };
 
 auto cache_item::get_parent(const symcache &cache) const -> const cache_item *