Skip to content

Commit

Permalink
update(examples): update the grpc unix socket name
Browse files Browse the repository at this point in the history
Signed-off-by: John Gornowich <[email protected]>
  • Loading branch information
John Gornowich authored and poiana committed Jan 22, 2024
1 parent 487f7df commit 526d6dc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ imports(

func main() {
c, err := client.NewForConfig(context.Background(), &client.Config{
UnixSocketPath: "unix:///var/run/falco.sock",
UnixSocketPath: "unix:///run/falco/falco.sock",
})
}
```
Expand Down
2 changes: 1 addition & 1 deletion examples/output_unix_socket/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
func main() {
//Set up a connection to the server.
c, err := client.NewForConfig(context.Background(), &client.Config{
UnixSocketPath: "unix:///var/run/falco.sock",
UnixSocketPath: "unix:///run/falco/falco.sock",
})
if err != nil {
log.Fatalf("unable to connect: %v", err)
Expand Down
2 changes: 1 addition & 1 deletion examples/output_unix_socket_bidi/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func printOutput(res *outputs.Response) error {
func main() {
//Set up a connection to the server.
c, err := client.NewForConfig(context.Background(), &client.Config{
UnixSocketPath: "unix:///var/run/falco.sock",
UnixSocketPath: "unix:///run/falco/falco.sock",
})
if err != nil {
log.Fatalf("unable to connect: %v", err)
Expand Down
2 changes: 1 addition & 1 deletion examples/version_unix_socket/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
func main() {
// Set up a connection to the server.
c, err := client.NewForConfig(context.Background(), &client.Config{
UnixSocketPath: "unix:///var/run/falco.sock",
UnixSocketPath: "unix:///run/falco/falco.sock",
})
if err != nil {
log.Fatalf("unable to create a Falco client: %v", err)
Expand Down

0 comments on commit 526d6dc

Please sign in to comment.