From 168dcc9db74ed7a6ac6e49e27a5fa2f0c4bbd256 Mon Sep 17 00:00:00 2001 From: saint Date: Sat, 17 Aug 2024 04:41:53 +1000 Subject: [PATCH] v0.40 Move to per thread MySQL/MariaDB connection --- gossamer_forums.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gossamer_forums.rb b/gossamer_forums.rb index 7ed483e..2fd0996 100644 --- a/gossamer_forums.rb +++ b/gossamer_forums.rb @@ -1098,13 +1098,13 @@ class GossamerForumsImporter < ImportScripts::Base # Initialise a new MariaDB / Mysql2 client inside of each thread mysql_client = Mysql2::Client.new( host: "slowtwitch.northend.network", - user: "admin", + username: "admin", password: "yxnh93Ybbz2Nm8#mp28zCVv", database: "slowtwitch" ) begin puts "Processing post ID: #{post_id}" - topic_import_job(post_idi, mysql_client) # Import topic and its replies + topic_import_job(post_id, mysql_client) # Import topic and its replies mark_post_as_complete(post_id) # Mark as complete in SQLite table rescue => e puts "Error processing post ID #{post_id}: #{e.message}"