Skip to content

Commit

Permalink
move into resample function
Browse files Browse the repository at this point in the history
  • Loading branch information
shouples committed Oct 30, 2023
1 parent 07cba57 commit 41437d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dx/comms/resample.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import structlog

from dx.filtering import handle_resample
from dx.types.filters import DEXResampleMessage

logger = structlog.get_logger(__name__)


Expand All @@ -20,7 +17,10 @@ def _recv(msg):
comm.send({"status": "connected", "source": "resampler"})


def handle_resample_comm(msg):
def handle_resample_comm(msg: dict) -> None:
from dx.filtering import handle_resample
from dx.types.filters import DEXResampleMessage

data = msg.get("content", {}).get("data", {})
if not data:
return
Expand Down

0 comments on commit 41437d7

Please sign in to comment.