Skip to content

Commit

Permalink
Merge remote-tracking branch 'github/pull/724'
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Jan 9, 2025
2 parents a2f80c8 + c456093 commit e4330da
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"]), :permitted_classes => [Time])
@state = YAML.safe_load(File.read(@config["state_file"]), :permitted_classes => [Time], :fallback => {})
@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 e4330da

Please sign in to comment.