Skip to content

Commit 70b3d6c

Browse files
authored
Disable caching by default (#995)
1 parent e586c99 commit 70b3d6c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/DefaultCallbackProvider.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class DefaultCallbackProvider : public CallbackProvider {
3333
const std::string &user_agent_name = EMPTY_STRING,
3434
const std::string &custom_user_agent = EMPTY_STRING,
3535
const std::string &cert_path = EMPTY_STRING,
36-
bool is_caching_endpoint = true,
36+
bool is_caching_endpoint = false,
3737
uint64_t caching_update_period = DEFAULT_ENDPOINT_CACHE_UPDATE_PERIOD);
3838

3939
explicit DefaultCallbackProvider(
@@ -45,7 +45,7 @@ class DefaultCallbackProvider : public CallbackProvider {
4545
const std::string &user_agent_name = EMPTY_STRING,
4646
const std::string &custom_user_agent = EMPTY_STRING,
4747
const std::string &cert_path = EMPTY_STRING,
48-
bool is_caching_endpoint = true,
48+
bool is_caching_endpoint = false,
4949
std::chrono::duration<uint64_t> caching_update_period = std::chrono::seconds(DEFAULT_ENDPOINT_CACHE_UPDATE_PERIOD / HUNDREDS_OF_NANOS_IN_A_SECOND));
5050

5151
explicit DefaultCallbackProvider(

src/KinesisVideoProducer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class KinesisVideoProducer {
8181
const std::string &region = DEFAULT_AWS_REGION,
8282
const std::string &control_plane_uri = "",
8383
const std::string &user_agent_name = DEFAULT_USER_AGENT_NAME,
84-
bool is_caching_endpoint = true,
84+
bool is_caching_endpoint = false,
8585
uint64_t caching_update_period = DEFAULT_ENDPOINT_CACHE_UPDATE_PERIOD);
8686

8787
static std::unique_ptr<KinesisVideoProducer> createSync(

0 commit comments

Comments
 (0)