handler: remove unused SinkMappingFunc

This commit is contained in:
Christian Schwarz 2017-09-11 13:51:19 +02:00
parent 0a53b2415f
commit d76d3db0b3
2 changed files with 2 additions and 4 deletions

View File

@ -104,7 +104,6 @@ outer:
handler := Handler{
Logger: log,
PullACL: j.Datasets,
// TODO should set SinkMapping here? no, but check Handler impl
}
// handle connection

View File

@ -32,9 +32,8 @@ type IncrementalTransferRequest struct {
}
type Handler struct {
Logger Logger
PullACL zfs.DatasetFilter
SinkMappingFunc func(clientIdentity string) (mapping DatasetMapping, err error)
Logger Logger
PullACL zfs.DatasetFilter
}
func registerEndpoints(server rpc.RPCServer, handler Handler) (err error) {