Skip to content

Commit

Permalink
fix(db): remove 'ntries' database connection argument
Browse files Browse the repository at this point in the history
  • Loading branch information
ljgray committed May 9, 2024
1 parent 2db1fb0 commit ed71ccf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ch_util/_db_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def event(
# ====================================


def connect_peewee_tables(read_write=False, reconnect=False, ntries=1):
def connect_peewee_tables(read_write=False, reconnect=False):
"""Initialize the connection to the CHIME data index database.
This function uses the current database connector from
Expand All @@ -156,7 +156,7 @@ def connect_peewee_tables(read_write=False, reconnect=False, ntries=1):
Force a reconnection.
"""

chimedb.core.connect(read_write, reconnect, ntries)
chimedb.core.connect(read_write, reconnect)

# Set the default, no-permissions user.
set_user("Chime")
Expand Down
4 changes: 2 additions & 2 deletions ch_util/finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,15 +239,15 @@ class Finder(object):
# Constructors and setup
# ----------------------

def __init__(self, acqs=(), node_spoof=None, ntries=1):
def __init__(self, acqs=(), node_spoof=None):
import copy

# Which nodes do we have available?
host = socket.gethostname().split(".")[0]
self._my_node = []
self._node_spoof = node_spoof

connect_database(ntries=ntries)
connect_database()

if not node_spoof:
for n in (
Expand Down

0 comments on commit ed71ccf

Please sign in to comment.