Skip to content

Commit

Permalink
Use only the description functions during the feed update
Browse files Browse the repository at this point in the history
  • Loading branch information
Tehforsch committed Jan 13, 2025
1 parent 9678b81 commit c502fc8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion rust/src/feed/update/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use futures::{stream, Stream, StreamExt};
use std::fs::File;
use tracing::trace;

use crate::nasl::builtin::Description;
use crate::nasl::interpreter::{CodeInterpreter, Interpreter};
use crate::nasl::nasl_std_functions;
use crate::nasl::prelude::*;
Expand Down Expand Up @@ -108,7 +109,7 @@ where
dispatcher: storage,
verifier,
feed_version_set: false,
executor: nasl_std_functions(),
executor: Executor::single(Description),
}
}

Expand Down
1 change: 1 addition & 0 deletions rust/src/nasl/builtin/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ mod sys;
#[cfg(test)]
mod tests;

pub use description::Description;
pub use error::BuiltinError;
pub use host::HostError;
pub use knowledge_base::KBError;
Expand Down
2 changes: 1 addition & 1 deletion rust/src/nasl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: GPL-2.0-or-later WITH x11vnc-openssl-exception

mod builtin;
pub mod builtin;
pub mod interpreter;
pub mod syntax;
pub mod utils;
Expand Down

0 comments on commit c502fc8

Please sign in to comment.