Monorepo for Tangled tangled.org

knotserver,knotmirror/xrpc: sync.requestCrawl support #1202

merged opened by boltless.me targeting master from sl/rvyxvsnxkkql

knotmirror ingests repo creation event from atproto relay through tap, not from knotstream. Therefore, knotserver will request sync.requestCrawl with optional new repo information to notify the repo creation event.

Knot will call sync.requestCrawl on following cases:

  • on startup
  • when /event stream has failed
  • on repo creation (mandatory)

Signed-off-by: Seongmin Lee git@boltless.me

Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:xasnlahkri4ewmbuzly2rlc5/sh.tangled.repo.pull/3mhk6tzq7xq22
-1
Interdiff #3 #4
-1
knotmirror/hostutil/hostutil.go
··· 54 54 // lower-case in response 55 55 return h.Normalize().String(), noSSL, nil 56 56 } 57 -
knotmirror/knotmirror.go

This file has not been changed.

knotmirror/resyncer.go

This file has not been changed.

knotmirror/xrpc/sync_requestCrawl.go

This file has not been changed.

knotmirror/xrpc/xrpc.go

This file has not been changed.

knotserver/config/config.go

This file has not been changed.

knotserver/events.go

This file has not been changed.

knotserver/server.go

This file has not been changed.

knotserver/xrpc/create_repo.go

This file has not been changed.

nix/modules/knot.nix

This file has not been changed.

nix/vm.nix

This file has not been changed.

History

7 rounds 4 comments
sign up or login to add to the discussion
1 commit
expand
nix,knotserver,knotmirror/xrpc: sync.requestCrawl support
2/3 timeout, 1/3 success
expand
expand 1 comment
pull request successfully merged
1 commit
expand
nix,knotserver,knotmirror/xrpc: sync.requestCrawl support
2/3 timeout, 1/3 success
expand
expand 3 comments

knotmirror/xrpc/sync_requestCrawl.go:22 this is unauthed right? so if this code goes through, I could curl -X POST /xrpc/sh.tangled.sync.requestCrawl -d "garbage" and crash knotmirror?

Thank you for checking. I should make a git hook to check unimplemented codes before push at this point...

1 commit
expand
nix,knotserver,knotmirror/xrpc: sync.requestCrawl support
2/3 timeout, 1/3 success
expand
expand 0 comments
1 commit
expand
nix,knotserver,knotmirror/xrpc: sync.requestCrawl support
expand 0 comments
1 commit
expand
knotserver,knotmirror/xrpc: sync.requestCrawl support
expand 0 comments
1 commit
expand
knotserver,knotmirror/xrpc: sync.requestCrawl support
expand 0 comments
1 commit
expand
knotserver,knotmirror/xrpc: sync.requestCrawl support
expand 0 comments