Skip to content

Commit

Permalink
Should allow None here as might not want a timeout...
Browse files Browse the repository at this point in the history
  • Loading branch information
rowleya committed Mar 7, 2024
1 parent e079d16 commit 03f8c6f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
from typing import List, Optional
from concurrent.futures import Future
from concurrent.futures import ThreadPoolExecutor, wait
from spinn_utilities.config_holder import get_config_bool, get_config_int
from spinn_utilities.config_holder import (
get_config_bool, get_config_int_or_none)
from spinn_utilities.log import FormatAdapter
from spinnman.connections.udp_packet_connections import EIEIOConnection
from spinnman.messages.eieio.command_messages import (
Expand Down Expand Up @@ -54,7 +55,7 @@ def __init__(self) -> None:
# has been read before starting the simulation
self.__wait_for_read_confirmation = get_config_bool(
"Database", "wait_on_confirmation")
self.__wait_for_read_timeout = get_config_int(
self.__wait_for_read_timeout = get_config_int_or_none(
"Database", "wait_on_confirmation_timeout")
self.__wait_pool: Optional[ThreadPoolExecutor] = \
ThreadPoolExecutor(max_workers=1)
Expand Down

0 comments on commit 03f8c6f

Please sign in to comment.