Skip to content

Commit

Permalink
address @P403n1x87 feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
gnufede committed Jan 22, 2025
1 parent b4e7500 commit cd89d7a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
9 changes: 6 additions & 3 deletions ddtrace/internal/appsec/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@ def start():

def restart(join=False):
if asm_config._asm_enabled or config._remote_config_enabled:
from ddtrace.appsec._remoteconfiguration import enable_appsec_rc
from ddtrace.appsec._remoteconfiguration import APPSEC_PRODUCTS
from ddtrace.internal.remoteconfig.worker import remoteconfig_poller

enable_appsec_rc()
remoteconfig_poller.start_subscribers_by_product(APPSEC_PRODUCTS)


def stop(join=False):
pass
from ddtrace.appsec._remoteconfiguration import disable_appsec_rc

disable_appsec_rc()


def at_exit(join=False):
Expand Down
5 changes: 1 addition & 4 deletions ddtrace/internal/iast/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ def start():


def restart(join=False):
if _is_iast_enabled():
from ddtrace.appsec._iast import enable_iast_propagation

enable_iast_propagation()
pass


def stop(join=False):
Expand Down

0 comments on commit cd89d7a

Please sign in to comment.