Skip to content
Snippets Groups Projects
Commit 08647ec5 authored by Daniel Martí's avatar Daniel Martí
Browse files

Run go fmt

parent 714581df
No related branches found
No related tags found
No related merge requests found
......@@ -30,8 +30,8 @@
package drbg
import (
"encoding/hex"
"encoding/binary"
"encoding/hex"
"fmt"
"hash"
......
......@@ -146,6 +146,7 @@ func NodeIDFromHex(encoded string) (*NodeID, error) {
return NewNodeID(raw)
}
// Bytes returns a pointer to the raw NodeID.
func (id *NodeID) Bytes() *[NodeIDLength]byte {
return (*[NodeIDLength]byte)(id)
......
......@@ -237,7 +237,7 @@ func (w *WeightedDist) String() string {
for i, v := range w.values {
p := w.weights[i]
if p > 0.01 { // Squelch tiny probabilities.
buf.WriteString(fmt.Sprintf("%d: %f ", v, p))
buf.WriteString(fmt.Sprintf("%d: %f ", v, p))
}
}
buf.WriteString("]")
......
......@@ -46,7 +46,7 @@ import (
)
const (
transportName = "obfs2"
transportName = "obfs2"
sharedSecretArg = "shared-secret"
clientHandshakeTimeout = time.Duration(30) * time.Second
......
......@@ -351,7 +351,6 @@ func (conn *obfs3Conn) Write(b []byte) (n int, err error) {
return conn.tx.Write(b)
}
var _ base.ClientFactory = (*obfs3ClientFactory)(nil)
var _ base.ServerFactory = (*obfs3ServerFactory)(nil)
var _ base.Transport = (*Transport)(nil)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment