Skip to content

Commit

Permalink
Merge remote-tracking branch 'github/pull/723'
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Jan 8, 2025
2 parents 4c80fb5 + 3d2e9b4 commit e7dee9f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ end
class Replicator
def initialize(config)
@config = YAML.safe_load(File.read(config))
@state = YAML.safe_load(File.read(@config["state_file"]), [Time])
@state = YAML.safe_load(File.read(@config["state_file"]), :permitted_classes => [Time])
@conn = PG::Connection.connect(@config["db"])
# get current time from the database rather than the current system
@now = @conn.exec("select now() as now").map { |row| Time.parse(row["now"]) }[0]
Expand Down

0 comments on commit e7dee9f

Please sign in to comment.