Skip to content

Commit

Permalink
commented out storage clients
Browse files Browse the repository at this point in the history
  • Loading branch information
cemklc committed May 3, 2021
1 parent 2b7f2be commit d51ae99
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/main/java/io/antmedia/AntMediaApplicationAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public boolean appStart(IScope app) {
setScope(app);
vertx = (Vertx) app.getContext().getBean(VERTX_BEAN_NAME);

storageClient = (StorageClient) app.getContext().getBean(StorageClient.BEAN_NAME);
//storageClient = (StorageClient) app.getContext().getBean(StorageClient.BEAN_NAME);

//initalize to access the data store directly in the code
getDataStore();
Expand Down Expand Up @@ -254,10 +254,10 @@ else if (socialEndpointCredentials.getServiceName().equals(YOUTUBE))
webRTCAdaptor.setRttMeasurementDiffThresholdForSwitchback(appSettings.getRttMeasurementDiffThresholdForSwitchback());
}
if (appSettings.isS3RecordingEnabled()) {
storageClient.setStorageName(appSettings.getS3BucketName());
storageClient.setRegion(appSettings.getS3RegionName());
storageClient.setAccessKey(appSettings.getS3AccessKey());
storageClient.setSecretKey(appSettings.getS3SecretKey());
//storageClient.setStorageName(appSettings.getS3BucketName());
//storageClient.setRegion(appSettings.getS3RegionName());
//storageClient.setAccessKey(appSettings.getS3AccessKey());
//storageClient.setSecretKey(appSettings.getS3SecretKey());
}
logger.info("{} started", app.getName());

Expand Down Expand Up @@ -1524,21 +1524,21 @@ private void updateAppSettingsBean(AppSettings appSettings, AppSettings newSetti
appSettings.setS3BucketName(newSettings.getS3BucketName());
appSettings.setS3RegionName(newSettings.getS3RegionName());

storageClient.setStorageName(newSettings.getS3BucketName());
storageClient.setAccessKey(newSettings.getS3AccessKey());
storageClient.setSecretKey(newSettings.getS3SecretKey());
storageClient.setRegion(newSettings.getS3RegionName());
//storageClient.setStorageName(newSettings.getS3BucketName());
//storageClient.setAccessKey(newSettings.getS3AccessKey());
//storageClient.setSecretKey(newSettings.getS3SecretKey());
//storageClient.setRegion(newSettings.getS3RegionName());

if (!appSettings.isS3RecordingEnabled()) {
appSettings.setS3AccessKey("");
appSettings.setS3SecretKey("");
appSettings.setS3BucketName("");
appSettings.setS3RegionName("");

storageClient.setStorageName("");
storageClient.setAccessKey("");
storageClient.setSecretKey("");
storageClient.setRegion("");
//storageClient.setStorageName("");
//storageClient.setAccessKey("");
//storageClient.setSecretKey("");
//storageClient.setRegion("");
}

if (appSettings.isS3RecordingEnabled()){
Expand Down

0 comments on commit d51ae99

Please sign in to comment.