chat: make Glob return chan GlobReply rather than chan interface{}
MultiPart: 3/3
Change-Id: I97a1e29a860ce297c10911d98362d142aa33c6b2
diff --git a/clients/shell/src/chat/channel.go b/clients/shell/src/chat/channel.go
index b823f71..17e5be0 100644
--- a/clients/shell/src/chat/channel.go
+++ b/clients/shell/src/chat/channel.go
@@ -288,8 +288,8 @@
for reply := range globChan {
switch v := reply.(type) {
- case *naming.MountEntry:
- blessings := blessingNamesFromMountEntry(v)
+ case *naming.GlobReplyEntry:
+ blessings := blessingNamesFromMountEntry(&v.Value)
if len(blessings) == 0 {
// No servers mounted at that name, likely only a
// lonely ACL. Safe to ignore.
@@ -298,7 +298,7 @@
// have an ACL graveyard before too long.
continue
}
- member := cr.newMember(blessings, v.Name)
+ member := cr.newMember(blessings, v.Value.Name)
members = append(members, member)
}
}