We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 913078c commit 90fae3dCopy full SHA for 90fae3d
intra/ipn/rpn/yegor.go
@@ -1643,9 +1643,12 @@ func (a *WsClient) kid() string {
1643
1644
func trunc8(s string) string {
1645
if len(s) <= 8 {
1646
- return s
+ return s[:4]
1647
}
1648
- return s[:8] + "..."
+ if len(s) <= 16 {
1649
+ return s[:4] + ".." + s[len(s)-4:]
1650
+ }
1651
+ return s[:8] + ".." + s[len(s)-8:]
1652
1653
1654
func newWsGw(c *WsWgConfig, h *http.Client) (*WsClient, error) {
0 commit comments