Browse Source

tweaks from reviewing PR

Stephen Searles 1 year ago
parent
commit
33dffdad95
2 changed files with 1 additions and 2 deletions
  1. 1
    1
      deltas.go
  2. 0
    1
      doc_test.go

+ 1
- 1
deltas.go View File

@@ -123,7 +123,7 @@ func (ch *CaddyHugo) Message(deltas ...acedoc.Delta) Message {
123 123
 }
124 124
 
125 125
 func (ch *CaddyHugo) handleDeltaConn(conn DeltaConn, doc *editSession) (int, error) {
126
-	const idlePing = 1 * time.Second
126
+	const idlePing = 15 * time.Second
127 127
 	const idlePingShort = 1 * time.Millisecond
128 128
 
129 129
 	errCh := make(chan error)

+ 0
- 1
doc_test.go View File

@@ -221,7 +221,6 @@ func TestDeltasMulti(t *testing.T) {
221 221
 
222 222
 	for i, client := range clients {
223 223
 		client.mtx.Lock()
224
-		t.Logf("client %d exists", i)
225 224
 		// all clients should have "written" 2 deltas out to their "browser"
226 225
 		// that came from the other clients
227 226
 		if len(client.wroteDeltas) != 2 {

Loading…
Cancel
Save