Skip to content

Commit

Permalink
feat: update max-socket-size func name
Browse files Browse the repository at this point in the history
  • Loading branch information
zengchen221 committed Mar 25, 2021
1 parent aaf566c commit 32a48f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions constants_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ package rpc
/*
#include <sys/un.h>
int max_socket_path_size() {
int max_socket_size() {
struct sockaddr_un s;
return sizeof(s.sun_path);
}
*/
import "C"

var (
max_path_size = C.max_socket_path_size()
max_path_size = C.max_socket_size()
)

0 comments on commit 32a48f8

Please sign in to comment.