Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 84eefa57bc | |||
| ad77371e38 | |||
| c524acb2df |
Vendored
+4
-2
@@ -21,8 +21,10 @@ RestrictRealtime=yes
|
||||
SystemCallArchitectures=native
|
||||
|
||||
# BEGIN ProtectHome
|
||||
ProtectHome=read-only # DEBIAN STRETCH
|
||||
# ProtectHome=tmpfs # FEDORA 28 / 29
|
||||
# DEBIAN STRETCH
|
||||
ProtectHome=read-only
|
||||
# FEDORA 28 / 29
|
||||
# ProtectHome=tmpfs
|
||||
# END ProtectHome
|
||||
|
||||
# BEGIN SystemCallFilter
|
||||
|
||||
@@ -37,6 +37,9 @@ The following list may be incomplete, feel free to submit a PR with an update:
|
||||
* - MacOS
|
||||
- ``brew install zrepl``
|
||||
- Available on `homebrew <https://brew.sh>`_
|
||||
* - Arch Linux
|
||||
- ``yay install zrepl-bin``
|
||||
- Available on `AUR <https://aur.archlinux.org/packages/zrepl-bin>`_
|
||||
* - Others
|
||||
-
|
||||
- Use `binary releases`_ or build from source.
|
||||
|
||||
@@ -36,9 +36,7 @@ func ClientConn(cn transport.Connecter, log Logger) *grpc.ClientConn {
|
||||
})
|
||||
dialerOption := grpc.WithDialer(grpcclientidentity.NewDialer(log, cn))
|
||||
cred := grpc.WithTransportCredentials(grpcclientidentity.NewTransportCredentials(log))
|
||||
ctx, cancel := context.WithTimeout(context.TODO(), 5*time.Second) // FIXME constant
|
||||
defer cancel()
|
||||
cc, err := grpc.DialContext(ctx, "doesn't matter done by dialer", dialerOption, cred, ka)
|
||||
cc, err := grpc.DialContext(context.Background(), "doesn't matter done by dialer", dialerOption, cred, ka)
|
||||
if err != nil {
|
||||
log.WithError(err).Error("cannot create gRPC client conn (non-blocking)")
|
||||
// It's ok to panic here: the we call grpc.DialContext without the
|
||||
|
||||
Reference in New Issue
Block a user