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

Commit 5c96066

Browse files
committed
Fix compilation error
1 parent 63066ea commit 5c96066

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

seabolt-test/src/mocks.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ int64_t BoltUtil_get_time_ms()
3737
return 0;
3838
}
3939

40+
int64_t BoltUtil_get_time_ms_from(struct timespec* tp)
41+
{
42+
return 0;
43+
}
44+
45+
void BoltUtil_sleep(int milliseconds)
46+
{
47+
48+
}
49+
4050
int64_t BoltUtil_increment(volatile int64_t* ref)
4151
{
4252
return (*ref += 1);

seabolt/src/bolt/pool/direct-pool.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ void BoltDirectPool_destroy(struct BoltDirectPool* pool)
204204
struct BoltConnectionResult BoltDirectPool_acquire(struct BoltDirectPool* pool)
205205
{
206206
struct BoltConnectionResult handle;
207-
int index = 0, pool_error = 0;
207+
int index = 0;
208+
enum BoltConnectionError pool_error = BOLT_SUCCESS;
208209

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

0 commit comments

Comments
 (0)