File tree Expand file tree Collapse file tree
java-spring/src/main/java/com/mongodb/samplemflix/config
python-fastapi/src/database Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ protected void configureClientSettings(MongoClientSettings.Builder builder) {
6363
6464 // Apply connection string and custom settings
6565 builder .applyConnectionString (connectionString )
66- //set application name
66+ // Set application name
6767 .applicationName ("sample-app-java-mflix" )
6868 // Configure connection pool for optimal performance
6969 .applyToConnectionPoolSettings (poolBuilder ->
Original file line number Diff line number Diff line change 55
66load_dotenv ()
77
8- client = AsyncMongoClient (os .getenv ("MONGO_URI" ), appname = "sample-app-python-mflix" )
8+ client = AsyncMongoClient (os .getenv ("MONGO_URI" ),
9+ # Set application name
10+ appname = "sample-app-python-mflix" )
11+
912db = client [os .getenv ("MONGO_DB" )]
1013
1114voyage_api_key = os .getenv ("VOYAGE_API_KEY" )
You can’t perform that action at this time.
0 commit comments