Skip to content

Commit 664d4ef

Browse files
Apply suggestions from code review
Co-authored-by: norbjd <[email protected]>
1 parent 22f6d59 commit 664d4ef

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

functions/go-mongo/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ For this example, [Scaleway Console](https://console.scaleway.com/) will be used
1313

1414
## Step 1 - Mongo
1515

16-
After Mongo DB creation, in the console find the public endpoint of the database, it should look lile: `<scw_database_id>.mgdb.<scw_region>.scw.cloud`
16+
After Mongo DB creation, in the console find the public endpoint of the database, it should look like: `<scw_database_id>.mgdb.<scw_region>.scw.cloud`
1717

1818
Once you get the endpoint, keep it somewhere for later use.
1919

@@ -30,8 +30,8 @@ Before creating a the Function, we need to package it into a zip file.
3030
> ```
3131
3232
- Create a Serverless Function namespace. [Documentation](https://www.scaleway.com/en/docs/serverless-functions/how-to/create-manage-delete-functions-namespace/#creating-a-serverless-functions-namespace)
33-
- In the created namespace, create Serverless Function
34-
- Select the Go runtime
33+
- In the created namespace, create a Serverless Function
34+
- Select the latest Go runtime
3535
- Upload the previously created `go-mongo.zip`
3636
- Ensure the handler is `Handle`
3737
- Add required Secrets to the Function:

functions/go-mongo/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/scaleway/serverless-examples/functions/go-mongo
22

3-
go 1.24.1
3+
go 1.24
44

55
require (
66
github.com/scaleway/serverless-functions-go v0.1.2

functions/go-mongo/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func init() {
3939
}
4040

4141
// This is a basic sample that does not use certificate for authentication, not recommended for production.
42-
mongo_uri := fmt.Sprintf(`mongodb+srv://%s:%s@%s/?tls=true&tlsInsecure=true`,
42+
mongoURI := fmt.Sprintf(`mongodb+srv://%s:%s@%s/?tls=true&tlsInsecure=true`,
4343
mongoUser,
4444
mongoPassword,
4545
mongoPublicEndpoint)

0 commit comments

Comments
 (0)