GithubHelp home page GithubHelp logo

Comments (8)

ydf0509 avatar ydf0509 commented on May 25, 2024

你这个写代码方式很奇怪啊,为什么要get_publisher呢?不推荐这么写代码。

from funboost.

ydf0509 avatar ydf0509 commented on May 25, 2024

你可以可以看看,BoosterManager的get_booster方法。不建议调用get_publisher。

非装饰器方式文档也写了,不建议跳过booster类。

from funboost.

LeeC20 avatar LeeC20 commented on May 25, 2024

好 我试一下

from funboost.

LeeC20 avatar LeeC20 commented on May 25, 2024

确实没问题。看来确实不能跳过boost类

from funboost.

ydf0509 avatar ydf0509 commented on May 25, 2024

image
这是很基础的知识啊,字典和列表是python的可变对象,funboost的函数直接修改了字典了,你把var字典初始化放到 for循环里面就可以了.

python的可变对象和不可变对象,你应该听说过吧

from funboost.

ydf0509 avatar ydf0509 commented on May 25, 2024

学习下什么是python可变对象吧

from funboost.

ydf0509 avatar ydf0509 commented on May 25, 2024

image
下个版本我改下吧,我自己在publish方法内部copy一下,这样不影响用户自身的传参.

from funboost.

ydf0509 avatar ydf0509 commented on May 25, 2024

如果你不想用@boost装饰器,可以看看 BoostersManager里面的方法,包括 build_booster 和 get_or_create_booster_by_queue_name

from funboost.

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.