MisskeyAdapter, NostrAdapter: try to fix misskey client context timeout, fix type signatures
Iris Lightshard nilix@nilfm.cc
PGP Signature
-----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQT/foVVmI9pK13hPWFohAcXSWbK8wUCZr/wcQAKCRBohAcXSWbK 8w6vAP4hTN7biH7blaBmSZ6FSiovAPtsKtgrVs6iNptR02IxYQEAnkaa57PVPgjb b/9xbDLmS8f3gPiS0rFYitl7sTR2fQ8= =7tbH -----END PGP SIGNATURE-----
2 files changed,
6 insertions(+),
5 deletions(-)
M
adapter/misskey.go
→
adapter/misskey.go
@@ -89,8 +89,8 @@ func (self *MisskeyAdapter) poll() {
var latest *time.Time - notesService := self.mk.Notes() - timelineService := notesService.Timeline() + var notesService *n.Service + var timelineService *tl.Service for { select {@@ -99,7 +99,8 @@ if !ok {
return } default: - + notesService = self.mk.Notes() + timelineService = notesService.Timeline() // TODO: we have to actually decode and pass our filter criteria // probe for new notes@@ -265,7 +266,7 @@
return &author } -func (self *MisskeyAdapter) Fetch(etype, ids []string) error { +func (self *MisskeyAdapter) Fetch(etype string, ids []string) error { for _, id := range ids { switch etype { case "message":
M
adapter/nostr.go
→
adapter/nostr.go
@@ -79,7 +79,7 @@ fmt.Println("subscription operation completed without errors")
return nil } -func (self *NostrAdapter) Fetch(etype, ids []string) error { +func (self *NostrAdapter) Fetch(etype string, ids []string) error { return nil }