Skip to content

Commit 737a579

Browse files
authored
Merge pull request #23 from reeflective/dev
Small rename
2 parents 0dcc2c5 + ad76e55 commit 737a579

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -344,11 +344,6 @@ Overall, contributions and ideas should revolve around strenghening its core/tra
344344
or around enhancing its interoperability with as much Go code/programs as possible.
345345

346346
- [ ] Add support for encrypted sqlite by default.
347-
- [ ] Encrypt in-memory channels, or add option for it.
348-
- [ ] Simpler/different listener/dialer backend interfaces, if it appears needed.
349-
- [ ] Abstract away the client-side authentication, for pluggable auth/credential models.
350347
- [ ] Replace logrus entirely and restructure behind a single package used by both client/server.
351-
- [ ] Review/refine/strenghen the dialer/listener init/close/start process, if it appears needed.
352-
- [ ] `teamclient update` downloads latest version of the server binary + method to `team.Client` for it.
353348
- [ ] Implement tests for most sensitive paths (certificates management, database functioning, etc)
354349

client/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ func (tc *Client) Connect(options ...Options) (err error) {
186186
// If the teamclient has been passed the WithNoDisconnect() option, it won't
187187
// disconnect.
188188
func (tc *Client) Disconnect() error {
189-
if tc.opts.console {
189+
if tc.opts.noDisconnect {
190190
return nil
191191
}
192192

client/options.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ type opts struct {
4646
noLogs bool
4747
logFile string
4848
inMemory bool
49-
console bool
49+
noDisconnect bool
5050
stdout io.Writer
5151
config *Config
5252
logger *logrus.Logger
@@ -211,6 +211,6 @@ func WithDialer(dialer Dialer) Options {
211211
// This option can only be used once, and should be passed client.New().
212212
func WithNoDisconnect() Options {
213213
return func(opts *opts) {
214-
opts.console = true
214+
opts.noDisconnect = true
215215
}
216216
}

0 commit comments

Comments
 (0)