good morning!!!!

Skip to content
Snippets Groups Projects
Commit 8b04b519 authored by Garet Halliday's avatar Garet Halliday
Browse files

log long syncs

parent ad528558
No related branches found
No related tags found
No related merge requests found
Pipeline #74046 passed
Pipeline: pggat

#74051

    package backends
    import (
    "log"
    "strings"
    "gfx.cafe/gfx/pggat/lib/fed"
    ......@@ -173,12 +174,19 @@ func sync(ctx *context) (bool, error) {
    return false, err
    }
    var i int
    for {
    i++
    err := ctx.ServerRead()
    if err != nil {
    return false, err
    }
    if i > 10000 {
    log.Printf("long sync, packet %c", ctx.Packet.Type())
    }
    switch ctx.Packet.Type() {
    case packets.TypeParseComplete,
    packets.TypeBindComplete,
    ......
    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