GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — core: add debug logging to troubleshoot share compaction loading · gmatht/opencode@4acb645

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .opencode
    • opencode.jsonc
  • packages/enterprise/src/core
    • share.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.opencode/opencode.jsonc‎

Copy file name to clipboardExpand all lines: .opencode/opencode.jsonc
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"$schema": "https://opencode.ai/config.json",
33
"plugin": ["opencode-openai-codex-auth"],
4-
// "enterprise": {
5-
// "url": "https://enterprise.dev.opencode.ai",
6-
// },
4+
"enterprise": {
5+
"url": "https://enterprise.dev.opencode.ai",
6+
},
77
"provider": {
88
"opencode": {
99
"options": {
Collapse file

‎packages/enterprise/src/core/share.ts‎

Copy file name to clipboardExpand all lines: packages/enterprise/src/core/share.ts
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,19 @@ export namespace Share {
8585
}
8686

8787
export async function data(shareID: string) {
88+
console.log("reading compaction")
8889
const compaction: Compaction = (await Storage.read<Compaction>(["share_compaction", shareID])) ?? {
8990
data: [],
9091
event: undefined,
9192
}
92-
93+
console.log("reading pending events")
9394
const list = await Storage.list({
9495
prefix: ["share_event", shareID],
9596
end: compaction.event,
9697
}).then((x) => x.toReversed())
9798

99+
console.log("compacting", list.length)
100+
98101
const data = await Promise.all(list.map(async (event) => await Storage.read<Data[]>(event))).then((x) => x.flat())
99102
for (const item of data) {
100103
if (!item) continue

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.