Skip to content

Commit

Permalink
Add missing parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Dec 19, 2024
1 parent eccd5aa commit 6cffecb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion include/tao/pq/pipeline.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#ifndef TAO_PQ_PIPELINE_HPP
#define TAO_PQ_PIPELINE_HPP

#include <chrono>
#include <memory>

#include <tao/pq/transaction_base.hpp>
Expand Down Expand Up @@ -40,7 +41,7 @@ namespace tao::pq
void operator=( pipeline&& ) = delete;

void sync();
void consume_sync();
void consume_sync( const std::chrono::steady_clock::time_point start = std::chrono::steady_clock::now() );

void finish();
};
Expand Down
2 changes: 0 additions & 2 deletions include/tao/pq/transaction_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ namespace tao::pq
}

[[nodiscard]] auto get_result( const std::chrono::steady_clock::time_point start = std::chrono::steady_clock::now() ) -> result;

// TODO: move this to the pipeline_transaction class
void consume_pipeline_sync( const std::chrono::steady_clock::time_point start = std::chrono::steady_clock::now() );
};

Expand Down
6 changes: 4 additions & 2 deletions src/lib/pq/pipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

#include <tao/pq/pipeline.hpp>

#include <chrono>

#include <tao/pq/connection.hpp>

namespace tao::pq
Expand All @@ -21,9 +23,9 @@ namespace tao::pq
connection()->pipeline_sync();
}

void pipeline::consume_sync()
void pipeline::consume_sync( const std::chrono::steady_clock::time_point start )
{
current_transaction()->consume_pipeline_sync();
current_transaction()->consume_pipeline_sync( start );
}

void pipeline::finish()
Expand Down

0 comments on commit 6cffecb

Please sign in to comment.