diff --git a/rust/examples/openvasd/config.example.toml b/rust/examples/openvasd/config.example.toml index 1b3f08b9a..4e6189ef3 100644 --- a/rust/examples/openvasd/config.example.toml +++ b/rust/examples/openvasd/config.example.toml @@ -1,4 +1,4 @@ -# Openvasd contains several modes to control the behaviour of it. +# Openvasd contains several modes to control the behavior of it. # Service enables nasl and notus feed observations all endpoints. mode = "service" # Notus disables /scan endpoints and just observes the notus feed. @@ -7,7 +7,7 @@ mode = "service" [feed] # Path to the openvas feed. This is required for the /vts endpoint. path = "/var/lib/openvas/plugins" -# Disables or enables the signnature check +# Disables or enables the signature check signature_check = true [feed.check_interval] @@ -88,7 +88,7 @@ url = "redis://localhost:6379" [storage.fs] # Sets the storage root directory if the storage.type is set to `fs`. path = "/var/lib/openvasd/storage" -# Sets the key used to ecrypt the storage data. It is recommended to set it via the `STORAGE_KEY` environment variable. +# Sets the key used to encrypt the storage data. It is recommended to set it via the `STORAGE_KEY` environment variable. #key = "changeme" [scheduler] diff --git a/rust/src/storage/item.rs b/rust/src/storage/item.rs index f88a08ff7..cfee89c6d 100644 --- a/rust/src/storage/item.rs +++ b/rust/src/storage/item.rs @@ -431,7 +431,7 @@ impl From for i64 { pub type TagValue = types::Primitive; impl TagValue { - /// Parhse the given Value based on the key to TagValue + /// Parse the given Value based on the key to TagValue // TODO move naslvalue out of syntax to own crate so we can use it here pub fn parse(key: TagKey, value: V) -> Result { let error = || StorageError::UnexpectedData(format!("{key:?} => {}", value.to_string()));