Coder Social home page Coder Social logo

Comments (2)

seefan avatar seefan commented on July 27, 2024

我在爬虫里试过,是可以的,请检查一下你的程序部分,协程是否都及时关闭了,看你给出的代码是没有问题。可以打印日志看一下。

也可以用下面的代码测试一下

package main

import (
    "log"
    "time"

    "github.com/seefan/gossdb/ssdb"
)

func main() {
    if err := ssdb.Start(); err != nil {
        log.Printf("ssdb连接错误", err)
        return
    }

    for i := 0; i < 10000; i++ {
        c, err := ssdb.Client()

        if err != nil {
            log.Printf("error %s", err.Error())
            break
        }
        c.Qpush_front("test", 1)

        time.Sleep(time.Microsecond)
        c.Close()
        log.Println(i)
    }
}

from gossdb.

DavidGSX avatar DavidGSX commented on July 27, 2024

the problem is solved at the following merge, you can test it again.
Merge pull request #23 from DavidGSX/master

from gossdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.