Skip to content

Commit

Permalink
wtclient: fix documentation [skip ci]
Browse files Browse the repository at this point in the history
the implementation also returns exhausted sessions
  • Loading branch information
C-Otto committed Oct 17, 2022
1 parent 2e410dd commit 2a56f60
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions watchtower/wtclient/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,9 @@ type DB interface {
// restarts.
CreateClientSession(*wtdb.ClientSession) error

// ListClientSessions returns all sessions that have not yet been
// exhausted. This is used on startup to find any sessions which may
// still be able to accept state updates. An optional tower ID can be
// used to filter out any client sessions in the response that do not
// correspond to this tower.
// ListClientSessions returns the set of all client sessions known to
// the db. An optional tower ID can be used to filter out any client
// sessions in the response that do not correspond to this tower.
ListClientSessions(*wtdb.TowerID, ...wtdb.ClientSessionListOption) (
map[wtdb.SessionID]*wtdb.ClientSession, error)

Expand Down

0 comments on commit 2a56f60

Please sign in to comment.