From 42741a3659281ffbef259eafeeb127b3286506cf Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 8 Nov 2017 15:42:37 -0500 Subject: Updated verbly (datafile versioning) --- grunge.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'grunge.cpp') diff --git a/grunge.cpp b/grunge.cpp index de9061e..2f6783c 100644 --- a/grunge.cpp +++ b/grunge.cpp @@ -16,6 +16,10 @@ grunge::grunge( // Load the config file. YAML::Node config = YAML::LoadFile(configFile); + // Set up the verbly database. + database_ = std::unique_ptr( + new verbly::database(config["verbly_datafile"].as())); + // Set up the Twitter client. twitter::auth auth; auth.setConsumerKey(config["consumer_key"].as()); @@ -24,10 +28,6 @@ grunge::grunge( auth.setAccessSecret(config["access_secret"].as()); client_ = std::unique_ptr(new twitter::client(auth)); - - // Set up the verbly database. - database_ = std::unique_ptr( - new verbly::database(config["verbly_datafile"].as())); } void grunge::run() const -- cgit 1.4.1