Skip to content

Commit d8ef6ef

Browse files
authored
Fix: Added missing return statement in Couchbase Cluster bean example (#2557)
Signed-off-by: PSriVarshan <[email protected]>
1 parent 29002df commit d8ef6ef

File tree

1 file changed

+2
-2
lines changed
  • spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs

1 file changed

+2
-2
lines changed

Diff for: spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/couchbase.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,9 @@ Read the link:https://docs.couchbase.com/java-sdk/current/hello-world/start-usin
215215
----
216216
@Bean
217217
public Cluster cluster() {
218-
Cluster cluster = Cluster.connect("couchbase://localhost",
219-
"username", "password");
218+
return Cluster.connect("couchbase://localhost", "username", "password");
220219
}
220+
221221
----
222222

223223
and then create the `CouchbaseSearchVectorStore` bean using the builder pattern:

0 commit comments

Comments
 (0)