mirror of
https://github.com/zrepl/zrepl.git
synced 2025-06-25 04:01:49 +02:00
rename variable
This commit is contained in:
parent
4ec5e23457
commit
cd9a428841
@ -159,7 +159,7 @@ func (j *PullJob) doRun(ctx context.Context) {
|
|||||||
|
|
||||||
sender := endpoint.NewRemote(client)
|
sender := endpoint.NewRemote(client)
|
||||||
|
|
||||||
puller, err := endpoint.NewReceiver(
|
receiver, err := endpoint.NewReceiver(
|
||||||
j.Mapping,
|
j.Mapping,
|
||||||
NewPrefixFilter(j.SnapshotPrefix),
|
NewPrefixFilter(j.SnapshotPrefix),
|
||||||
)
|
)
|
||||||
@ -173,7 +173,7 @@ func (j *PullJob) doRun(ctx context.Context) {
|
|||||||
ctx = streamrpc.ContextWithLogger(ctx, streamrpcLogAdaptor{log.WithField(logSubsysField, "rpc")})
|
ctx = streamrpc.ContextWithLogger(ctx, streamrpcLogAdaptor{log.WithField(logSubsysField, "rpc")})
|
||||||
ctx = endpoint.WithLogger(ctx, log.WithField(logSubsysField, "endpoint"))
|
ctx = endpoint.WithLogger(ctx, log.WithField(logSubsysField, "endpoint"))
|
||||||
j.rep = replication.NewReplication()
|
j.rep = replication.NewReplication()
|
||||||
j.rep.Drive(ctx, sender, puller)
|
j.rep.Drive(ctx, sender, receiver)
|
||||||
}
|
}
|
||||||
|
|
||||||
client.Close()
|
client.Close()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user