Skip to content

Commit

Permalink
fix main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
korotkov-aerospike committed Aug 11, 2024
1 parent eb41d06 commit 5d7cdfb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/aws/s3/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@ package main
import (
"context"
"fmt"
"log"
"log/slog"

"github.com/aerospike/aerospike-client-go/v7"
"github.com/aerospike/backup-go"
"github.com/aerospike/backup-go/io/aws/s3"
"log"
)

const (
Expand Down Expand Up @@ -58,7 +56,7 @@ func initBackupClient() *backup.Client {
panic(aerr)
}

backupClient, err := backup.NewClient(aerospikeClient, "client_id", slog.Default())
backupClient, err := backup.NewClient(aerospikeClient, backup.WithID("client_id"))
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 5d7cdfb

Please sign in to comment.