aboutsummaryrefslogtreecommitdiff
path: root/read.go
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-03-09 18:24:30 +0100
committerAlex Auvolat <alex@adnab.me>2021-03-09 18:24:30 +0100
commitdc3fd4df659bb35d7858714a429fc797bf5f1222 (patch)
tree3fe72366e98994067264b87ece0b53df8bde4d10 /read.go
parentb17e3fe3c7636ab00aa7db123e10d5b6a6bc540c (diff)
downloadbottin-dc3fd4df659bb35d7858714a429fc797bf5f1222.tar.gz
bottin-dc3fd4df659bb35d7858714a429fc797bf5f1222.zip
Use consul's stale reads by default
Diffstat (limited to 'read.go')
-rw-r--r--read.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/read.go b/read.go
index 0868624..b139175 100644
--- a/read.go
+++ b/read.go
@@ -109,7 +109,7 @@ func (server *Server) handleSearchInternal(state *State, w ldap.ResponseWriter,
basePath += "/"
}
- data, _, err := server.kv.List(basePath, nil)
+ data, _, err := server.kv.List(basePath, &server.readOpts)
if err != nil {
return ldap.LDAPResultOperationsError, err
}