commit 6e726dc: [Minor] Add timeout augmentation

Vsevolod Stakhov vsevolod at rspamd.com
Wed Aug 17 20:35:03 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-08-17 20:35:39 +0100
URL: https://github.com/rspamd/rspamd/commit/6e726dc807bfd927329b223586d809bd3d3d58f6

[Minor] Add timeout augmentation

---
 src/libserver/symcache/symcache_item.cxx | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/libserver/symcache/symcache_item.cxx b/src/libserver/symcache/symcache_item.cxx
index 57a0a6695..87e857d23 100644
--- a/src/libserver/symcache/symcache_item.cxx
+++ b/src/libserver/symcache/symcache_item.cxx
@@ -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 *


More information about the Commits mailing list