MisskeyAdapter, NostrAdapter: try to fix misskey client context timeout, fix type signatures

This commit is contained in:
Iris Lightshard 2024-08-16 18:36:01 -06:00
parent 67ec0e1809
commit aecfd97c96
Signed by: nilix
GPG Key ID: 688407174966CAF3
2 changed files with 6 additions and 5 deletions

View File

@ -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 @@ func (self *MisskeyAdapter) poll() {
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 @@ func (self *MisskeyAdapter) toAuthor(usr mkm.User) *Author {
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":

View File

@ -79,7 +79,7 @@ func (self *NostrAdapter) Subscribe(filter string) []error {
return nil
}
func (self *NostrAdapter) Fetch(etype, ids []string) error {
func (self *NostrAdapter) Fetch(etype string, ids []string) error {
return nil
}