Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
Fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-ince committed Oct 4, 2018
1 parent 63066ea commit 5c96066
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions seabolt-test/src/mocks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@ int64_t BoltUtil_get_time_ms()
return 0;
}

int64_t BoltUtil_get_time_ms_from(struct timespec* tp)
{
return 0;
}

void BoltUtil_sleep(int milliseconds)
{

}

int64_t BoltUtil_increment(volatile int64_t* ref)
{
return (*ref += 1);
Expand Down
3 changes: 2 additions & 1 deletion seabolt/src/bolt/pool/direct-pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ void BoltDirectPool_destroy(struct BoltDirectPool* pool)
struct BoltConnectionResult BoltDirectPool_acquire(struct BoltDirectPool* pool)
{
struct BoltConnectionResult handle;
int index = 0, pool_error = 0;
int index = 0;
enum BoltConnectionError pool_error = BOLT_SUCCESS;

int64_t started_at = BoltUtil_get_time_ms();
BoltLog_info(pool->config->log, "acquiring connection from the pool");
Expand Down

0 comments on commit 5c96066

Please sign in to comment.