Skip to content

Commit dafa042

Browse files
MalakhatkoVadymgconnell
authored andcommitted
Fix whitespace formatting
1 parent d50a4f7 commit dafa042

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

config/config.go

+13-13
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,23 @@ type ThreadConfig struct {
4949

5050
// RpcConfig is a json-decoded configuration for running the gRPC server.
5151
type RpcConfig struct {
52-
CaCert string
53-
ServerKey string
54-
ServerCert string
55-
ServerPort int
56-
ServerPcapPath string
57-
ServerPcapMaxSize int64
58-
ClientPcapChunkSize int64
59-
ClientPcapMaxSize int64
52+
CaCert string
53+
ServerKey string
54+
ServerCert string
55+
ServerPort int
56+
ServerPcapPath string
57+
ServerPcapMaxSize int64
58+
ClientPcapChunkSize int64
59+
ClientPcapMaxSize int64
6060
}
6161

6262
// Config is a json-decoded configuration for running stenographer.
6363
type Config struct {
64-
Rpc *RpcConfig
64+
Rpc *RpcConfig
6565
StenotypePath string
6666
Threads []ThreadConfig
6767
Interface string
68-
TestimonySocket string
68+
TestimonySocket string
6969
Flags []string
7070
Port int
7171
Host string // Location to listen.
@@ -111,9 +111,9 @@ func (c Config) Validate() error {
111111
}
112112
}
113113

114-
if len(c.TestimonySocket) > 0 && len(c.Interface) > 0 {
115-
return fmt.Errorf("Can't use both \"Interface\" and \"TestimonySocket\" options")
116-
}
114+
if len(c.TestimonySocket) > 0 && len(c.Interface) > 0 {
115+
return fmt.Errorf("Can't use both \"Interface\" and \"TestimonySocket\" options")
116+
}
117117

118118
if host := net.ParseIP(c.Host); host == nil {
119119
return fmt.Errorf("invalid listening location %q in configuration", c.Host)

env/env.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,13 @@ func New(c config.Config) (_ *Env, returnedErr error) {
134134

135135
// args is the set of command line arguments to pass to stentype.
136136
func (d *Env) args() []string {
137-
res := append(d.conf.Flags,
137+
res := append(d.conf.Flags,
138138
fmt.Sprintf("--threads=%d", len(d.conf.Threads)),
139139
fmt.Sprintf("--dir=%s", d.Path()))
140140

141141
if len(d.conf.Interface) > 0 {
142142
res = append(res, fmt.Sprintf("--iface=%s", d.conf.Interface))
143-
}
143+
}
144144
if len(d.conf.TestimonySocket) > 0 {
145145
res = append(res, fmt.Sprintf("--testimony=%s", d.conf.TestimonySocket))
146146
}

0 commit comments

Comments
 (0)