Skip to content

Fetch streaming nodes and resources#82

Merged
jschwinger233 merged 7 commits intoprojecteru2:masterfrom
jschwinger233:zc/stream
Dec 31, 2021
Merged

Fetch streaming nodes and resources#82
jschwinger233 merged 7 commits intoprojecteru2:masterfrom
jschwinger233:zc/stream

Conversation

@jschwinger233
Copy link
Copy Markdown
Member

@jschwinger233 jschwinger233 commented Dec 27, 2021

  1. cli pod nodes 普通版不再 fetch info, 所以很快
  2. cli pod nodes --show-info 才 fetch info, 所以可能很慢, 遇到有节点连不上要等到默认 10s 超时
  3. cli pod nodes --show-info --stream 流式输出, 用 core 的新的 API PodNodesStream
  4. cli pod resource 一样, --stream 使用新 API PodResourceStream 和流式输出

@jschwinger233 jschwinger233 changed the title [WIP] [WIP] Fetch streaming nodes and resources Dec 28, 2021
@jschwinger233
Copy link
Copy Markdown
Member Author

玩球 lint 不认识 generic 语法....

@jschwinger233
Copy link
Copy Markdown
Member Author

岂止是 lint 不认识, go1.18 -gcflags=all=-G=3 vet 也不认识泛型

@CMGS
Copy link
Copy Markdown
Collaborator

CMGS commented Dec 28, 2021

魔法把自己给膜了

@CMGS
Copy link
Copy Markdown
Collaborator

CMGS commented Dec 28, 2021

118 为啥不能泛型

@jschwinger233
Copy link
Copy Markdown
Member Author

118 为啥不能泛型

118 的 vet 还是不认识

@jschwinger233
Copy link
Copy Markdown
Member Author

118 为啥不能泛型

更新了一下, 之前我用的 118 的一个 commit, 更新成 118beta 就可以了.... vet 也可以

@jschwinger233 jschwinger233 force-pushed the zc/stream branch 2 times, most recently from 8317d86 to f6b710d Compare December 29, 2021 03:48
@jschwinger233
Copy link
Copy Markdown
Member Author

我还是回退到 1.17 了, 等 1.18 再用泛型好了, 再过两个月就好.

@jschwinger233 jschwinger233 changed the title [WIP] Fetch streaming nodes and resources Fetch streaming nodes and resources Dec 29, 2021
@jschwinger233 jschwinger233 merged commit 8bb5e5f into projecteru2:master Dec 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants